org.jboss.jca.core.naming
Class ExplicitJndiStrategy

java.lang.Object
  extended by org.jboss.jca.core.naming.ExplicitJndiStrategy
All Implemented Interfaces:
Cloneable, ObjectFactory, org.jboss.jca.core.spi.naming.JndiStrategy

public class ExplicitJndiStrategy
extends Object
implements org.jboss.jca.core.spi.naming.JndiStrategy

An explicit JNDI strategy that requires a JNDI for each connection factory

Author:
Jesper Pedersen

Constructor Summary
ExplicitJndiStrategy()
          Constructor
 
Method Summary
 String[] bindAdminObjects(String deployment, Object[] aos)
          
 String[] bindAdminObjects(String deployment, Object[] aos, String[] jndis)
          
 String[] bindConnectionFactories(String deployment, Object[] cfs)
          
 String[] bindConnectionFactories(String deployment, Object[] cfs, String[] jndis)
          
 org.jboss.jca.core.spi.naming.JndiStrategy clone()
          Clone the JNDI strategy implementation
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment)
          Obtain the connection factory
 void unbindAdminObjects(String deployment, Object[] aos)
          
 void unbindAdminObjects(String deployment, Object[] aos, String[] jndis)
          
 void unbindConnectionFactories(String deployment, Object[] cfs)
          
 void unbindConnectionFactories(String deployment, Object[] cfs, String[] jndis)
          
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplicitJndiStrategy

public ExplicitJndiStrategy()
Constructor

Method Detail

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable<?,?> environment)
                         throws Exception
Obtain the connection factory

Specified by:
getObjectInstance in interface ObjectFactory
Throws:
Exception

bindConnectionFactories

public String[] bindConnectionFactories(String deployment,
                                        Object[] cfs)
                                 throws Throwable

Specified by:
bindConnectionFactories in interface org.jboss.jca.core.spi.naming.JndiStrategy
Throws:
Throwable

bindConnectionFactories

public String[] bindConnectionFactories(String deployment,
                                        Object[] cfs,
                                        String[] jndis)
                                 throws Throwable

Specified by:
bindConnectionFactories in interface org.jboss.jca.core.spi.naming.JndiStrategy
Throws:
Throwable

unbindConnectionFactories

public void unbindConnectionFactories(String deployment,
                                      Object[] cfs)
                               throws Throwable

Specified by:
unbindConnectionFactories in interface org.jboss.jca.core.spi.naming.JndiStrategy
Throws:
Throwable

unbindConnectionFactories

public void unbindConnectionFactories(String deployment,
                                      Object[] cfs,
                                      String[] jndis)
                               throws Throwable

Specified by:
unbindConnectionFactories in interface org.jboss.jca.core.spi.naming.JndiStrategy
Throws:
Throwable

bindAdminObjects

public String[] bindAdminObjects(String deployment,
                                 Object[] aos)
                          throws Throwable

Specified by:
bindAdminObjects in interface org.jboss.jca.core.spi.naming.JndiStrategy
Throws:
Throwable

bindAdminObjects

public String[] bindAdminObjects(String deployment,
                                 Object[] aos,
                                 String[] jndis)
                          throws Throwable

Specified by:
bindAdminObjects in interface org.jboss.jca.core.spi.naming.JndiStrategy
Throws:
Throwable

unbindAdminObjects

public void unbindAdminObjects(String deployment,
                               Object[] aos)
                        throws Throwable

Specified by:
unbindAdminObjects in interface org.jboss.jca.core.spi.naming.JndiStrategy
Throws:
Throwable

unbindAdminObjects

public void unbindAdminObjects(String deployment,
                               Object[] aos,
                               String[] jndis)
                        throws Throwable

Specified by:
unbindAdminObjects in interface org.jboss.jca.core.spi.naming.JndiStrategy
Throws:
Throwable

clone

public org.jboss.jca.core.spi.naming.JndiStrategy clone()
                                                 throws CloneNotSupportedException
Clone the JNDI strategy implementation

Specified by:
clone in interface org.jboss.jca.core.spi.naming.JndiStrategy
Overrides:
clone in class Object
Returns:
A copy of the implementation
Throws:
CloneNotSupportedException - Thrown if the copy operation isn't supported


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)