Class JNDIStateFactoryImpl

java.lang.Object
com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl
All Implemented Interfaces:
StateFactory

public class JNDIStateFactoryImpl extends Object implements StateFactory
StateFactory that turns java.rmi.Remote objects to org.omg.CORBA.Object. This version works either with standard RMI-IIOP or Dynamic RMI-IIOP.
  • Field Details

  • Constructor Details

    • JNDIStateFactoryImpl

      public JNDIStateFactoryImpl()
  • Method Details

    • getStateToBind

      public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException
      Returns the CORBA object for a Remote object. If input is not a Remote object, or if Remote object uses JRMP, return null. If the RMI-IIOP library is not available, throw ConfigurationException.
      Specified by:
      getStateToBind in interface StateFactory
      Parameters:
      orig - The object to turn into a CORBA object. If not Remote, or if is a JRMP stub or impl, return null.
      name - Ignored
      ctx - The non-null CNCtx whose ORB to use.
      env - Ignored
      Returns:
      The CORBA object for orig or null.
      Throws:
      ConfigurationException - If the CORBA object cannot be obtained due to configuration problems
      NamingException - If some other problem prevented a CORBA object from being obtained from the Remote object.
    • getORB

      private ORB getORB(Context ctx)
    • getOrbField

      private Field getOrbField(Context ctx)
    • getField

      private Field getField(Class<?> aClass, String fieldName)