org.jboss.proxy.ejb
Class IIOPHomeFactory

java.lang.Object
  extended byorg.jboss.proxy.ejb.IIOPHomeFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

public class IIOPHomeFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory

An ObjectFactory implementation that translates References to EJBHomes back into CORBA object references. The IIOP proxy factory (IORFactory) binds these References in the JRMP/JNDI namespace.


Constructor Summary
IIOPHomeFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
          Lookup the IOR from the Reference and convert into the CORBA object value using the ORB.string_to_object method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IIOPHomeFactory

public IIOPHomeFactory()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable environment)
                                   throws java.lang.Exception
Lookup the IOR from the Reference and convert into the CORBA object value using the ORB.string_to_object method.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Parameters:
obj - a javax.naming.Reference with a string IOR under the address type IOR.
name - not used
nameCtx - not used
environment - not used
Returns:
The EJBHome proxy for the IOR
Throws:
java.lang.Exception