Class JNDIStateFactoryImpl
java.lang.Object
com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
orbFields
-
-
Constructor Details
-
JNDIStateFactoryImpl
public JNDIStateFactoryImpl()
-
-
Method Details
-
getStateToBind
public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?, ?> env) throws NamingExceptionReturns 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 interfaceStateFactory
- Parameters:
orig
- The object to turn into a CORBA object. If not Remote, or if is a JRMP stub or impl, return null.name
- Ignoredctx
- 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 problemsNamingException
- If some other problem prevented a CORBA object from being obtained from the Remote object.
-
getORB
-
getOrbField
-
getField
-