Class RemoteToCorba

  • All Implemented Interfaces:
    StateFactory

    public class RemoteToCorba
    extends Object
    implements StateFactory
    StateFactory that turns java.rmi.Remote objects to org.omg.CORBA.Object.
    Author:
    Rosanna Lee
    • Constructor Detail

      • RemoteToCorba

        public RemoteToCorba()
    • Method Detail

      • 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, for instance, if RMI-IIOP not available.
        NamingException - If some other problem prevented a CORBA object from being obtained from the Remote object.