A LocalObject represents a local interface for an IDL interface, allowing for efficient, local interfaces to objects running in the same VM. Any remote operations that are not relevant for a local object will throw a NO_IMPLEMENT exception. Added as of JDK 1.4.

public class LocalObject implements org.omg.CORBA.Object {
// Public Constructors
   public LocalObject();  
// Public Instance Methods
   public org.omg.CORBA.Object _get_interface();  
   public org.omg.CORBA.portable.InputStream _invoke( org.omg.CORBA.portable.OutputStream output) 
       throws org.omg.CORBA.portable.ApplicationExceptionorg.omg.CORBA.portable.RemarshalException;  
   public boolean _is_local();  
   public org.omg.CORBA.ORB _orb();  
   public void _releaseReply(
        org.omg.CORBA.portable.InputStream input);  
   public org.omg.CORBA.portable.OutputStream _request(
        String operation, boolean responseExpected);  
   public void _servant_postinvoke(
        org.omg.CORBA.portable.ServantObject servant);  
   public org.omg.CORBA.portable.ServantObject _servant_preinvoke(
        String operation, Class expectedType);  
   public boolean validate_connection();  
// Methods Implementing Object
   public Request _create_request(org.omg.CORBA.Context ctx, 
        String operation, NVList arg_list, 
        NamedValue result);  
   public Request _create_request(org.omg.CORBA.Context ctx, 
        String operation, NVList arg_list, 
        NamedValue result, ExceptionList exceptions, 
        ContextList contexts ...

Get Java Enterprise in a Nutshell, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.