org.jboss.jca.core.naming
Class SimpleJndiStrategy

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

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

A simple JNDI strategy that bind a single connection factory under the name of "java:/eis/<deployment>" by default. A single admin object is bound under "java:/eis/ao/<deployment>" by default.

Author:
Jesper Pedersen

Constructor Summary
SimpleJndiStrategy()
          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

SimpleJndiStrategy

public SimpleJndiStrategy()
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 © 2008 Red Hat Middleware LLC (http://www.jboss.com/)