public class ExplicitJndiStrategy extends java.lang.Object implements JndiStrategy
Constructor and Description |
---|
ExplicitJndiStrategy()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
bindAdminObjects(java.lang.String deployment,
java.lang.Object[] aos)
Bind admin objects for a deployment
|
java.lang.String[] |
bindAdminObjects(java.lang.String deployment,
java.lang.Object[] aos,
java.lang.String[] jndis)
Bind admin objects for a deployment
|
java.lang.String[] |
bindConnectionFactories(java.lang.String deployment,
java.lang.Object[] cfs)
Bind connection factories for a deployment
|
java.lang.String[] |
bindConnectionFactories(java.lang.String deployment,
java.lang.Object[] cfs,
java.lang.String[] jndis)
Bind connection factories for a deployment
|
JndiStrategy |
clone()
Clone the JNDI strategy implementation
|
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
Obtain the connection factory
|
void |
unbindAdminObjects(java.lang.String deployment,
java.lang.Object[] aos)
Unbind admin objects for a deployment
|
void |
unbindAdminObjects(java.lang.String deployment,
java.lang.Object[] aos,
java.lang.String[] jndis)
Unbind admin objects for a deployment
|
void |
unbindConnectionFactories(java.lang.String deployment,
java.lang.Object[] cfs)
Unbind connection factories for a deployment
|
void |
unbindConnectionFactories(java.lang.String deployment,
java.lang.Object[] cfs,
java.lang.String[] jndis)
Unbind connection factories for a deployment
|
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
getObjectInstance
in interface javax.naming.spi.ObjectFactory
java.lang.Exception
public java.lang.String[] bindConnectionFactories(java.lang.String deployment, java.lang.Object[] cfs) throws java.lang.Throwable
bindConnectionFactories
in interface JndiStrategy
deployment
- The deployment namecfs
- The connection factoriesjava.lang.Throwable
- Thrown if an error occurspublic java.lang.String[] bindConnectionFactories(java.lang.String deployment, java.lang.Object[] cfs, java.lang.String[] jndis) throws java.lang.Throwable
bindConnectionFactories
in interface JndiStrategy
deployment
- The deployment namecfs
- The connection factoriesjndis
- The JNDI names for the connection factoriesjava.lang.Throwable
- Thrown if an error occurspublic void unbindConnectionFactories(java.lang.String deployment, java.lang.Object[] cfs) throws java.lang.Throwable
unbindConnectionFactories
in interface JndiStrategy
deployment
- The deployment namecfs
- The connection factoriesjava.lang.Throwable
- Thrown if an error occurspublic void unbindConnectionFactories(java.lang.String deployment, java.lang.Object[] cfs, java.lang.String[] jndis) throws java.lang.Throwable
unbindConnectionFactories
in interface JndiStrategy
deployment
- The deployment namecfs
- The connection factoriesjndis
- The JNDI names for the connection factoriesjava.lang.Throwable
- Thrown if an error occurspublic java.lang.String[] bindAdminObjects(java.lang.String deployment, java.lang.Object[] aos) throws java.lang.Throwable
bindAdminObjects
in interface JndiStrategy
deployment
- The deployment nameaos
- The admin objectsjava.lang.Throwable
- Thrown if an error occurspublic java.lang.String[] bindAdminObjects(java.lang.String deployment, java.lang.Object[] aos, java.lang.String[] jndis) throws java.lang.Throwable
bindAdminObjects
in interface JndiStrategy
deployment
- The deployment nameaos
- The admin objectsjndis
- The JNDI names for the admin objectsjava.lang.Throwable
- Thrown if an error occurspublic void unbindAdminObjects(java.lang.String deployment, java.lang.Object[] aos) throws java.lang.Throwable
unbindAdminObjects
in interface JndiStrategy
deployment
- The deployment nameaos
- The admin objectsjava.lang.Throwable
- Thrown if an error occurspublic void unbindAdminObjects(java.lang.String deployment, java.lang.Object[] aos, java.lang.String[] jndis) throws java.lang.Throwable
unbindAdminObjects
in interface JndiStrategy
deployment
- The deployment nameaos
- The admin objectsjndis
- The JNDI names for the admin objectsjava.lang.Throwable
- Thrown if an error occurspublic JndiStrategy clone() throws java.lang.CloneNotSupportedException
clone
in interface JndiStrategy
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- Thrown if the copy operation isn't supportedCopyright © 2013 IronJacamar (http://www.ironjacamar.org)