org.omg.CORBA
Class _PolicyStub

java.lang.Object
  extended by org.omg.CORBA.portable.ObjectImpl
      extended by org.omg.CORBA._PolicyStub
All Implemented Interfaces:
Serializable, Object, Policy, PolicyOperations, IDLEntity

public class _PolicyStub
extends ObjectImpl
implements Policy, Serializable

The Policy stub (proxy), used on the client side. The Policy methods contain the code for remote invocaton.

See Also:
Serialized Form

Constructor Summary
_PolicyStub()
          Create the Policy stub.
_PolicyStub(Delegate delegate)
          Create the naming context stub with the given delegate.
 
Method Summary
 String[] _ids()
          Return the array of repository ids for this object.
 Policy copy()
          Return a copy of this Policy.
 void destroy()
          Destroy the policy object.
 int policy_type()
          Return an integer number, corresponding the type of this policy.
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

_PolicyStub

public _PolicyStub()
Create the Policy stub. To get the stub working, you must later set the delegate with ObjectImpl._set_delegate(Delegate).


_PolicyStub

public _PolicyStub(Delegate delegate)
Create the naming context stub with the given delegate.

Method Detail

_ids

public String[] _ids()
Return the array of repository ids for this object.

Specified by:
_ids in class ObjectImpl

destroy

public void destroy()
Destroy the policy object.

Specified by:
destroy in interface PolicyOperations

copy

public Policy copy()
Return a copy of this Policy.

Specified by:
copy in interface PolicyOperations
Returns:
a copy of theis Policy, without any retained relationships to the previous domain or object.

policy_type

public int policy_type()
Return an integer number, corresponding the type of this policy. The values, defining the different policy types, are allocated by OMG (request AT omg DOT org).

Specified by:
policy_type in interface PolicyOperations
Returns:
the integer policy code.