org.jboss.jca.core.spi.naming
Interface JndiStrategy

All Superinterfaces:
Cloneable, ObjectFactory

public interface JndiStrategy
extends Cloneable, ObjectFactory

The SPI for a JNDI strategy

Author:
Jesper Pedersen

Method Summary
 String[] bindAdminObjects(String deployment, Object[] aos)
          Bind admin objects for a deployment
 String[] bindAdminObjects(String deployment, Object[] aos, String[] jndis)
          Bind admin objects for a deployment
 String[] bindConnectionFactories(String deployment, Object[] cfs)
          Bind connection factories for a deployment
 String[] bindConnectionFactories(String deployment, Object[] cfs, String[] jndis)
          Bind connection factories for a deployment
 JndiStrategy clone()
          Clone the JNDI strategy implementation
 void unbindAdminObjects(String deployment, Object[] aos)
          Unbind admin objects for a deployment
 void unbindAdminObjects(String deployment, Object[] aos, String[] jndis)
          Unbind admin objects for a deployment
 void unbindConnectionFactories(String deployment, Object[] cfs)
          Unbind connection factories for a deployment
 void unbindConnectionFactories(String deployment, Object[] cfs, String[] jndis)
          Unbind connection factories for a deployment
 
Methods inherited from interface javax.naming.spi.ObjectFactory
getObjectInstance
 

Method Detail

bindConnectionFactories

String[] bindConnectionFactories(String deployment,
                                 Object[] cfs)
                                 throws Throwable
Bind connection factories for a deployment

Parameters:
deployment - The deployment name
cfs - The connection factories
Returns:
The JNDI names for the connection factories
Throws:
Throwable - Thrown if an error occurs

bindConnectionFactories

String[] bindConnectionFactories(String deployment,
                                 Object[] cfs,
                                 String[] jndis)
                                 throws Throwable
Bind connection factories for a deployment

Parameters:
deployment - The deployment name
cfs - The connection factories
jndis - The JNDI names for the connection factories
Returns:
The JNDI names for the connection factories
Throws:
Throwable - Thrown if an error occurs

unbindConnectionFactories

void unbindConnectionFactories(String deployment,
                               Object[] cfs)
                               throws Throwable
Unbind connection factories for a deployment

Parameters:
deployment - The deployment name
cfs - The connection factories
Throws:
Throwable - Thrown if an error occurs

unbindConnectionFactories

void unbindConnectionFactories(String deployment,
                               Object[] cfs,
                               String[] jndis)
                               throws Throwable
Unbind connection factories for a deployment

Parameters:
deployment - The deployment name
cfs - The connection factories
jndis - The JNDI names for the connection factories
Throws:
Throwable - Thrown if an error occurs

bindAdminObjects

String[] bindAdminObjects(String deployment,
                          Object[] aos)
                          throws Throwable
Bind admin objects for a deployment

Parameters:
deployment - The deployment name
aos - The admin objects
Returns:
The JNDI names for the admin objects
Throws:
Throwable - Thrown if an error occurs

bindAdminObjects

String[] bindAdminObjects(String deployment,
                          Object[] aos,
                          String[] jndis)
                          throws Throwable
Bind admin objects for a deployment

Parameters:
deployment - The deployment name
aos - The admin objects
jndis - The JNDI names for the admin objects
Returns:
The JNDI names for the admin objects
Throws:
Throwable - Thrown if an error occurs

unbindAdminObjects

void unbindAdminObjects(String deployment,
                        Object[] aos)
                        throws Throwable
Unbind admin objects for a deployment

Parameters:
deployment - The deployment name
aos - The admin objects
Throws:
Throwable - Thrown if an error occurs

unbindAdminObjects

void unbindAdminObjects(String deployment,
                        Object[] aos,
                        String[] jndis)
                        throws Throwable
Unbind admin objects for a deployment

Parameters:
deployment - The deployment name
aos - The admin objects
jndis - The JNDI names for the admin objects
Throws:
Throwable - Thrown if an error occurs

clone

JndiStrategy clone()
                   throws CloneNotSupportedException
Clone the JNDI strategy implementation

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)