GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.omg.CORBA.LocalObject
Object
, but actually
handling all invocations locally.
Various calls to the remote object specific methods throw the
NO_IMPLEMENT
. The explaining message for this exception is
specified in java API as "This is a locally constrained object."
.
It is not possible to get a stringified reference of the local object, or
invoke a method using DII (by name via Request
class).
However narrowing and widening methods will work with local objects.
Method Summary | |
Request |
|
Request |
|
Object |
|
DomainManager[] |
|
Object |
|
Object |
|
Policy |
|
int |
|
InputStream |
|
boolean | |
boolean |
|
boolean |
|
boolean |
|
ORB |
|
void |
|
void |
|
Request | |
OutputStream | |
void |
|
ServantObject |
|
Object |
|
boolean |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public Request _create_request(Context context, String operation, NVList parameters, NamedValue returns)
This method is not appropriate for the local objects and just throws an exception.
- Specified by:
- _create_request in interface Object
public Request _create_request(Context context, String operation, NVList parameters, NamedValue returns, ExceptionList exceptions, ContextList ctx_list)
This method is not appropriate for the local objects and just throws an exception.
- Specified by:
- _create_request in interface Object
public Object _duplicate()
This method is not appropriate for the local objects and just throws an exception.
- Specified by:
- _duplicate in interface Object
public DomainManager[] _get_domain_managers()
This method is not appropriate for the local objects and just throws an exception.
- Specified by:
- _get_domain_managers in interface Object
public Object _get_interface()
This method is not appropriate for the local objects and just throws an exception.
public Object _get_interface_def()
This method is not appropriate for the local objects and just throws an exception.
- Specified by:
- _get_interface_def in interface Object
public Policy _get_policy(int a_policy_type) throws BAD_PARAM
This method is not appropriate for the local objects and just throws an exception.
- Specified by:
- _get_policy in interface Object
public InputStream _invoke(OutputStream output) throws ApplicationException, RemarshalException
Invokes the operation. This method takes the OutputStream that was previously returned by a_request(String)
and returns an InputStream which contains the reply. Up till jdk 1.5 inclusive this method is marked as unimplemented.
- Throws:
NO_IMPLEMENT
- always.
public boolean _is_a(String repositoryIdentifer)
This method is not appropriate for the local objects and just throws an exception.
public boolean _is_equivalent(Object other)
Determines if the object is equal to another object, so far as it is possible to determine easily.
- Specified by:
- _is_equivalent in interface Object
- Parameters:
other
- the other object.
- Returns:
- true if the pased object is not null and java.lang.Object.equals(other) returns true. False otherwise.
public boolean _is_local()
While it may look that this should return true, the jdk 1.5 API states that it must throw NO_IMPLEMENT instead. The rmi stubs do not call this method to check if the object is local; they callUtil.isLocal(Stub)
instead (passingthis
as parameter).
- Returns:
- never.
- Throws:
NO_IMPLEMENT
- always.
public boolean _non_existent()
Always returs false.
- Specified by:
- _non_existent in interface Object
- Returns:
- false, always.
public ORB _orb()
This method is not appropriate for the local objects and just throws an exception.
public void _release()
This method is not appropriate for the local objects and just throws an exception.
public void _releaseReply(InputStream input)
This method is not appropriate for the local objects and just throws an exception.
public Request _request(String operation)
This method is not appropriate for the local objects and just throws an exception.
public OutputStream _request(String operation, boolean responseExpected)
This method is not appropriate for the local objects and just throws an exception.
public void _servant_postinvoke(ServantObject servant)
This method is called fromrmic
generated stubs if theUtil.isLocal(Stub)
, called passingthis
as parameter, returns true, and the_servant_preinvoke(String,Class)
return non-null object. The stub then invokes the requrested method on that returned object and later calls _servant_postinvoke, passing that returned target as parameter.
- Parameters:
servant
- the object that has served as the invocation target for the current operation.
public ServantObject _servant_preinvoke(String operation, Class<T> expectedType)
This method is called fromrmic
generated stubs if theUtil.isLocal(Stub)
, called passingthis
as parameter, returns true. If the method returns null, the requested method is then invoked onthis
. Else it is invoked on the returned object, casting it into the interface that the local object implements. In this case, the generated stub also later calls_servant_postinvoke(ServantObject)
, passing that returned target as parameter.
- Parameters:
operation
- the name of the method being invoked.expectedType
- the interface that the returned servant object must implement.
- Throws:
NO_IMPLEMENT
- always. If used, the method must be overridden.
public Object _set_policy_override(Policy[] policies, SetOverrideType how)
This method is not appropriate for the local objects and just throws an exception.
- Specified by:
- _set_policy_override in interface Object
public boolean validate_connection()
This method is not appropriate for the local objects and just throws an exception.
GNU Classpath (0.95) |