public class LocalObject extends Objectimplements Object
Used as a base class for implementation of a local IDL interface in the Java language mapping. It is a class which implements all the operations in the org.omg.CORBA.Object interface.
Local interfaces are implemented by using CORBA::LocalObject to provide implementations of Object pseudo operations and any other ORB-specific support mechanisms that are appropriate for such objects. Object implementation techniques are inherently language-mapping specific. Therefore, the LocalObject type is not defined in IDL, but is specified in each language mapping.
Methods that do not apply to local objects throw an org.omg.CORBA.NO_IMPLEMENT exception with the message, "This is a locally contrained object." Attempting to use a LocalObject to create a DII request results in NO_IMPLEMENT system exception. Attempting to marshal or stringify a LocalObject results in a MARSHAL system exception. Narrowing and widening references to LocalObjects must work as for regular object references.
LocalObject is to be used as the base class of locally constrained objects, such as those in the PortableServer module. The specification here is based on the CORBA Components Volume I - orbos/99-07-01
| Constructor and Description |
|---|
LocalObject()
Constructs a default
LocalObject instance.
|
| Modifier and Type | Method and Description |
|---|---|
Request |
_create_request(Context
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
Request |
_create_request(Context
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
Object |
_duplicate()
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
DomainManager |
_get_domain_managers()
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented.
|
Object |
_get_interface_def()
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
Object |
_get_interface()
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented.
|
Policy |
_get_policy(int policy_type)
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented.
|
int |
_hash(int maximum)
Returns a hash value that is consistent for the lifetime of the object, using the given number as the maximum.
|
InputStream |
_invoke(OutputStream
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
boolean |
_is_a(String
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented.
|
boolean |
_is_equivalent(Object
Determines whether the two object references are equivalent, so far as the ORB can easily determine.
|
boolean |
_is_local()
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
boolean |
_non_existent()
Always returns
false.
|
ORB |
_orb()
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
void |
_release()
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
void |
_releaseReply(InputStream
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
Request |
_request(String
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
OutputStream |
_request(String
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
void |
_servant_postinvoke(ServantObject
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
ServantObject |
_servant_preinvoke(String
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
|
Object |
_set_policy_override(Policy
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented.
|
boolean |
validate_connection()
Throws an
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented.
|
public boolean _is_equivalent(Objectthat)
Determines whether the two object references are equivalent, so far as the ORB can easily determine. Two object references are equivalent if they are identical. Two distinct object references which in fact refer to the same object are also equivalent. However, ORBs are not required to attempt determination of whether two distinct object references refer to the same object, since such determination could be impractically expensive.
Default implementation of the org.omg.CORBA.Object method.
_is_equivalent in interface
Object
that - the object reference with which to check for equivalence
true if this object reference is known to be equivalent to the given object reference. Note that
false indicates only that the two object references are distinct, not necessarily that they reference distinct objects.
public boolean _non_existent()
false. This method is the default implementation of the
org.omg.CORBA.Object method.
_non_existent in interface
Object
false
public int _hash(int maximum)
org.omg.CORBA.Object method.
public boolean _is_a(Stringrepository_id)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the
org.omg.CORBA.Object method.
_is_a in interface
Object
repository_id - a
String
NO_IMPLEMENT - because this is a locally constrained object and this method does not apply to local objects
CORBA package comments for unimplemented features
public Object_duplicate()
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
_duplicate in interface
Object
LocalObject instance.
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public void _release()
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
_release in interface
Object
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public Request_request(String operation)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
_request in interface
Object
operation - a
String giving the name of an operation to be performed by the request that is returned
Request object with the given operation
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public Request_create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
_create_request in interface
Object
ctx - a
Context object containing a list of properties
operation - the
String representing the name of the method to be invoked
arg_list - an
NVList containing the actual arguments to the method being invoked
result - a
NamedValue object to serve as a container for the method's return value
Request object initialized with the given arguments
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public Request_create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
_create_request in interface
Object
ctx - a
Context object containing a list of properties
operation - the name of the method to be invoked
arg_list - an
NVList containing the actual arguments to the method being invoked
result - a
NamedValue object to serve as a container for the method's return value
exceptions - an
ExceptionList object containing a list of possible exceptions the method can throw
contexts - a
ContextList object containing a list of context strings that need to be resolved and sent with the
Request instance
Request object initialized with the given arguments
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public Object_get_interface()
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the
org.omg.CORBA.Object method.
NO_IMPLEMENT - because this is a locally constrained object and this method does not apply to local objects
CORBA package comments for unimplemented features
public Object_get_interface_def()
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
_get_interface_def in interface
Object
InterfaceDef object in the Interface Repository which provides type information about the object referred to by this object reference
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public ORB_orb()
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
ObjectImpl
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public Policy_get_policy(int policy_type)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the
org.omg.CORBA.Object method.
_get_policy in interface
Object
policy_type - an
int
NO_IMPLEMENT - because this is a locally constrained object and this method does not apply to local objects
CORBA package comments for unimplemented features
public DomainManager[] _get_domain_managers()
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the
org.omg.CORBA.Object method.
_get_domain_managers in interface
Object
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public Object_set_policy_override(Policy [] policies, SetOverrideType set_add)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the
org.omg.CORBA.Object method.
_set_policy_override in interface
Object
policies - an array
set_add - a flag
NO_IMPLEMENT - because this is a locally constrained object and this method does not apply to local objects
CORBA package comments for unimplemented features
public boolean _is_local()
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
Returns true for this LocalObject instance.
true always
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public ServantObject_servant_preinvoke(String operation, Class expectedType)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
operation - a
String indicating which operation to preinvoke
expectedType - the class of the type of operation mentioned above
NO_IMPLEMENT - because this is a locally constrained object and this method does not apply to local object
CORBA package comments for unimplemented features
public void _servant_postinvoke(ServantObjectservant)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
servant - the servant object on which to post-invoke
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public OutputStream_request(String operation, boolean responseExpected)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
Called by a stub to obtain an OutputStream for marshaling arguments. The stub must supply the operation name, and indicate if a response is expected (i.e is this a oneway call).
operation - the name of the operation being requested
responseExpected -
true if a response is expected,
false if it is a one-way call
NO_IMPLEMENT - because this is a locally constrained object and this method does not apply to local objects
CORBA package comments for unimplemented features
public InputStream_invoke(OutputStream output) throws ApplicationException , RemarshalException
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
Called to invoke an operation. The stub provides an OutputStream that was previously returned by a _request() call. _invoke returns an InputStream which contains the marshaled reply. If an exception occurs, _invoke may throw an ApplicationException object which contains an InputStream from which the user exception state may be unmarshaled.
output - the
OutputStream to invoke
ApplicationException - If an exception occurs,
_invoke may throw an
ApplicationException object which contains an
InputStream from which the user exception state may be unmarshaled.
RemarshalException - If an exception occurs,
_invoke may throw an
ApplicationException object which contains an
InputStream from which the user exception state may be unmarshaled.
NO_IMPLEMENT - because this is a locally constrained object and this method does not apply to local objects
CORBA package comments for unimplemented features
public void _releaseReply(InputStreaminput)
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the
org.omg.CORBA.Object method.
May optionally be called by a stub to release a reply stream back to the ORB when the unmarshaling has completed. The stub passes the InputStream returned by _invoke() or ApplicationException.getInputStream(). A null value may also be passed to _releaseReply, in which case the method is a no-op.
input - the reply stream back to the ORB or null
NO_IMPLEMENT -
CORBA package comments for unimplemented features
public boolean validate_connection()
org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the
org.omg.CORBA.Object method.
NO_IMPLEMENT - because this is a locally constrained object and this method does not apply to local objects
CORBA package comments for unimplemented features