Package org.glassfish.jndi.cosnaming
Class RemoteToCorba
- java.lang.Object
-
- org.glassfish.jndi.cosnaming.RemoteToCorba
-
- All Implemented Interfaces:
javax.naming.spi.StateFactory
public class RemoteToCorba extends java.lang.Object implements javax.naming.spi.StateFactory
StateFactory that turns java.rmi.Remote objects to org.omg.CORBA.Object.
-
-
Constructor Summary
Constructors Constructor Description RemoteToCorba()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getStateToBind(java.lang.Object orig, javax.naming.Name name, javax.naming.Context ctx, java.util.Hashtable<?,?> env)
Returns the CORBA object for a Remote object.
-
-
-
Method Detail
-
getStateToBind
public java.lang.Object getStateToBind(java.lang.Object orig, javax.naming.Name name, javax.naming.Context ctx, java.util.Hashtable<?,?> env) throws javax.naming.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 interfacejavax.naming.spi.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
- Ignoredctx
- The non-null CNCtx whose ORB to use.env
- Ignored- Returns:
- The CORBA object for
orig
or null. - Throws:
javax.naming.ConfigurationException
- If the CORBA object cannot be obtained due to configuration problems, for instance, if RMI-IIOP not available.javax.naming.NamingException
- If some other problem prevented a CORBA object from being obtained from the Remote object.
-
-