public class LinkProxy extends java.lang.Object implements ObjectProxy, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected javax.naming.spi.InitialContextFactory |
_factory |
protected java.lang.Class |
_factoryClass |
protected java.lang.String |
_foreignName |
protected java.lang.String |
_jndiLocalName |
protected java.lang.String |
_jndiName |
protected java.util.Hashtable<java.lang.String,java.lang.String> |
_props |
Constructor and Description |
---|
LinkProxy()
Creates a new LinkProxy.
|
LinkProxy(javax.naming.spi.InitialContextFactory factory,
java.util.Hashtable<java.lang.String,java.lang.String> props,
java.lang.String name)
Creates a new LinkProxy.
|
LinkProxy(java.lang.String name)
Creates a new LinkProxy.
|
Modifier and Type | Method and Description |
---|---|
void |
addInitParam(InitParam initParam)
Adds init param.
|
java.lang.Object |
createObject(java.util.Hashtable env)
Creates the object from the proxy.
|
void |
init()
Initialize the resource.
|
void |
setFactory(java.lang.Class factoryClass)
Sets the factory
|
void |
setForeignName(java.lang.String name)
Sets the foreign-name
|
void |
setJndiFactory(java.lang.Class factoryClass)
Deprecated.
|
void |
setJndiLocalName(java.lang.String name)
Sets the jndi name.
|
void |
setJndiName(java.lang.String name)
Sets the jndi name.
|
void |
setName(java.lang.String name)
Deprecated.
|
java.lang.String |
toString() |
protected javax.naming.spi.InitialContextFactory _factory
protected java.lang.Class _factoryClass
protected java.util.Hashtable<java.lang.String,java.lang.String> _props
protected java.lang.String _jndiName
protected java.lang.String _jndiLocalName
protected java.lang.String _foreignName
public LinkProxy() throws javax.naming.NamingException
javax.naming.NamingException
public LinkProxy(javax.naming.spi.InitialContextFactory factory, java.util.Hashtable<java.lang.String,java.lang.String> props, java.lang.String name) throws javax.naming.NamingException
factory
- the foreign factoryprops
- the properties for the objectname
- the jndi-link path in the foreign namespacejavax.naming.NamingException
public LinkProxy(java.lang.String name) throws javax.naming.NamingException
name
- the jndi-link path in the foreign namespacejavax.naming.NamingException
public void setJndiName(java.lang.String name)
public void setJndiLocalName(java.lang.String name)
public void setName(java.lang.String name)
setJndiName(java.lang.String)
public void setFactory(java.lang.Class factoryClass)
public void setJndiFactory(java.lang.Class factoryClass)
setFactory(java.lang.Class)
public void setForeignName(java.lang.String name)
public void addInitParam(InitParam initParam)
public java.lang.Object createObject(java.util.Hashtable env) throws javax.naming.NamingException
createObject
in interface ObjectProxy
env
- the calling environmentjavax.naming.NamingException
@PostConstruct public void init() throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object