public abstract class Delegate extends Object
Object
| Constructor and Description |
|---|
Delegate()
|
| Modifier and Type | Method and Description |
|---|---|
abstract Request |
create_request(Object
Creates a Request instance for use in the Dynamic Invocation Interface.
|
abstract Request |
create_request(Object
Creates a Request instance for use in the Dynamic Invocation Interface.
|
abstract Object |
duplicate(Object
Returns a duplicate of the object reference provided.
|
boolean |
equals(Object
Provides the implementation to override the equals(java.lang.Object obj) method of the delegating CORBA object.
|
DomainManager |
get_domain_managers(Object
Retrieves the
DomainManagers of this object.
|
abstract Object |
get_interface_def(Object
Return an InterfaceDef for the object reference provided.
|
Policy |
get_policy(Object
Returns the
Policy object of the specified type which applies to this object.
|
abstract int |
hash(Object
Returns an ORB-internal identifier (hashcode) for this object reference.
|
int |
hashCode(Object
Provides the implementation to override the hashCode() method of the delegating CORBA object.
|
InputStream |
invoke(Object
invoke is called by a stub to invoke an operation.
|
abstract boolean |
is_a(Object
Checks if the object reference is an instance of the given interface.
|
abstract boolean |
is_equivalent(Object
Determines if the two object references are equivalent.
|
boolean |
is_local(Object
Returns true if this object is implemented by a local servant.
|
abstract boolean |
non_existent(Object
Determines whether the server object for the object reference has been destroyed.
|
ORB |
orb(Object
Provides a reference to the orb associated with its parameter.
|
abstract void |
release(Object
Releases resources associated with the object reference provided.
|
void |
releaseReply(Object
releaseReply may optionally be called by a stub to release a reply stream back to the ORB when the unmarshaling has completed.
|
abstract Request |
request(Object
Creates a Request instance for use in the Dynamic Invocation Interface.
|
OutputStream |
request(Object
request is called by a stub to obtain an OutputStream for marshaling arguments.
|
void |
servant_postinvoke(Object
servant_postinvoke() is invoked by the local stub after the operation has been invoked on the local servant.
|
ServantObject |
servant_preinvoke(Object
Returns a Java reference to the servant which should be used for this request.
|
Object |
set_policy_override(Object
Associates the policies passed in with a newly created object reference that it returns.
|
String |
toString(Object
Provides the implementation to override the toString() method of the delegating CORBA object.
|
public abstract Objectget_interface_def(Object self)
self - The object reference whose InterfaceDef needs to be returned
public abstract Objectduplicate(Object obj)
obj - The object reference whose duplicate needs to be returned
public abstract void release(Objectobj)
obj - The object reference whose resources need to be released
public abstract boolean is_a(Objectobj, String repository_id)
obj - The object reference to be checked.
repository_id - The repository identifier of the interface to check against.
public abstract boolean non_existent(Objectobj)
obj - The object reference which delegated to this delegate.
public abstract boolean is_equivalent(Objectobj, Object other)
obj - The object reference which delegated to this delegate.
other - The object reference to check equivalence against.
public abstract int hash(Objectobj, int max)
obj - The object reference which delegated to this delegate.
max - specifies an upper bound on the hash value returned by the ORB.
public abstract Requestrequest(Object obj, String operation)
obj - The object reference which delegated to this delegate.
operation - The name of the operation to be invoked using the Request instance.
public abstract Requestcreate_request(Object obj, Context ctx, String operation, NVList arg_list, NamedValue result)
obj - The object reference which delegated to this delegate.
ctx - The context to be used.
operation - The name of the operation to be invoked.
arg_list - The arguments to the operation in the form of an NVList.
result - A container for the result as a NamedValue.
public abstract Requestcreate_request(Object obj, Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist)
obj - The object reference which delegated to this delegate.
ctx - The context to be used.
operation - The name of the operation to be invoked.
arg_list - The arguments to the operation in the form of an NVList.
result - A container for the result as a NamedValue.
exclist - A list of possible exceptions the operation can throw.
ctxlist - A list of context strings that need to be resolved and sent with the Request.
public ORBorb(Object obj)
obj - the object reference which delegated to this delegate.
portable package comments for unimplemented features
public Policyget_policy(Object self, int policy_type)
Policy object of the specified type which applies to this object.
self - The object reference which delegated to this delegate.
policy_type - The type of policy to be obtained.
Policy object of the type specified by the policy_type parameter.
BAD_PARAM - raised when the value of policy type is not valid either because the specified type is not supported by this ORB or because a policy object of that type is not associated with this Object.
portable package comments for unimplemented features
public DomainManager[] get_domain_managers(Object self)
DomainManagers of this object. This allows administration services (and applications) to retrieve the domain managers, and hence the security and other policies applicable to individual objects that are members of the domain.
self - The object reference which delegated to this delegate.
portable package comments for unimplemented features
public Objectset_policy_override(Object self, Policy [] policies, SetOverrideType set_add)
self - The object reference which delegated to this delegate.
policies - A sequence of references to Policy objects.
set_add - Indicates whether these policies should be added onto any otheroverrides that already exist (ADD_OVERRIDE) in the object reference, or they should be added to a clean override free object reference (SET_OVERRIDE).
portable package comments for unimplemented features
public boolean is_local(Objectself)
self - The object reference which delegated to this delegate.
public ServantObjectservant_preinvoke(Object self, String operation, Class expectedType)
self - The object reference which delegated to this delegate.
operation - a string containing the operation name. The operation name corresponds to the operation name as it would be encoded in a GIOP request.
expectedType - a Class object representing the expected type of the servant. The expected type is the Class object associated with the operations class of the stub's interface (e.g. A stub for an interface Foo, would pass the Class object for the FooOperations interface).
public void servant_postinvoke(Objectself, ServantObject servant)
self - The object reference which delegated to this delegate.
servant - the instance of the ServantObject returned from the servant_preinvoke() method.
public OutputStreamrequest(Object self, String operation, boolean responseExpected)
self - The object reference which delegated to this delegate.
operation - a string containing the operation name. The operation name corresponds to the operation name as it would be encoded in a GIOP request.
responseExpected - false if the operation is a one way operation, and true otherwise.
portable package comments for unimplemented features
public InputStreaminvoke(Object self, OutputStream output) throws ApplicationException , RemarshalException
self - The object reference which delegated to this delegate.
output - the OutputStream which contains marshaled arguments
ApplicationException - thrown when implementation throws (upon invocation) an exception defined as part of its remote method definition.
RemarshalException - thrown when remarshalling fails.
portable package comments for unimplemented features
public void releaseReply(Objectself, InputStream input)
self - The object reference which delegated to this delegate.
input - the InputStream returned from invoke().
portable package comments for unimplemented features
public StringtoString(Object self)
self - the object reference that delegated to this delegate
String object that represents the object reference that delegated to this
Delegate object
public int hashCode(Objectself)
self - the object reference that delegated to this delegate
int that represents the hashcode for the object reference that delegated to this
Delegate object
public boolean equals(Objectself, Object obj)
self - the object reference that delegated to this delegate
obj - the
Object with which to compare
true if
obj equals
self;
false otherwise