com.caucho.ejb.protocol
Class NamingProxy

java.lang.Object
  extended by com.caucho.ejb.protocol.NamingProxy
All Implemented Interfaces:
ObjectProxy, java.io.Serializable

public class NamingProxy
extends java.lang.Object
implements ObjectProxy, java.io.Serializable

An object proxy for a foreign JNDI factory.

See Also:
Serialized Form

Field Summary
protected  AbstractModel _namingModel
           
 
Constructor Summary
NamingProxy(AbstractModel namingModel)
          Creates a new LinkProxy.
 
Method Summary
 java.lang.Object createObject(java.util.Hashtable<?,?> env)
          Creates the object from the proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_namingModel

protected AbstractModel _namingModel
Constructor Detail

NamingProxy

public NamingProxy(AbstractModel namingModel)
            throws javax.naming.NamingException
Creates a new LinkProxy.

Parameters:
name - the jndi-link path in the foreign namespace
Throws:
javax.naming.NamingException
Method Detail

createObject

public java.lang.Object createObject(java.util.Hashtable<?,?> env)
                              throws javax.naming.NamingException
Creates the object from the proxy.

Specified by:
createObject in interface ObjectProxy
Parameters:
env - the calling environment
Returns:
the object named by the proxy.
Throws:
javax.naming.NamingException