org.ow2.easybeans.resolver.api
Interface EZBContainerJNDIResolver

All Superinterfaces:
EZBJNDIResolver

public interface EZBContainerJNDIResolver
extends EZBJNDIResolver

Resolver allowing to find matching JNDI names for beans within the same container.

Author:
Florent Benoit

Method Summary
 void addEJBJNDIName(String interfaceName, EZBJNDIBeanData jndiData)
          Adds a new JNDI name for the given interface name / bean name.
 void addMessageDestinationJNDIName(String messageDestinationName, EZBJNDIData jndiData)
          Adds a new JNDI name for the given message destination name.
 EZBApplicationJNDIResolver getApplicationJNDIResolver()
           
 List<EZBJNDIBeanData> getEJBJNDINames(String interfaceName, String beanName, boolean askParent)
          Allows to find EJB JNDI name.
 List<EZBJNDIData> getMessageDestinationJNDINames(String messageDestinationName, boolean askParent)
          Allows to find Message Destination JNDI name.
 URL getURL()
           
 void setApplicationJNDIResolver(EZBApplicationJNDIResolver applicationJNDIResolver)
          Sets the application resolver.
 
Methods inherited from interface org.ow2.easybeans.resolver.api.EZBJNDIResolver
getEJBJNDINames, getEJBJNDINames, getEJBJNDIUniqueName, getMessageDestinationJNDINames, getMessageDestinationJNDIUniqueName
 

Method Detail

getURL

URL getURL()
Returns:
URL used by this resolver.

getEJBJNDINames

List<EZBJNDIBeanData> getEJBJNDINames(String interfaceName,
                                      String beanName,
                                      boolean askParent)
Allows to find EJB JNDI name.

Parameters:
interfaceName - the name of the interface that EJBs are implementing.
beanName - the name of the bean on which we need to find JNDI name.
askParent - allow to disallow request to parent.
Returns:
a list of matching JNDI objects for the given interface and bean name.

addEJBJNDIName

void addEJBJNDIName(String interfaceName,
                    EZBJNDIBeanData jndiData)
Adds a new JNDI name for the given interface name / bean name.

Parameters:
interfaceName - the given interface
jndiData - data for the JNDI Name entry

addMessageDestinationJNDIName

void addMessageDestinationJNDIName(String messageDestinationName,
                                   EZBJNDIData jndiData)
Adds a new JNDI name for the given message destination name.

Parameters:
messageDestinationName - the given message destination name.
jndiData - data for the JNDI Name entry

getMessageDestinationJNDINames

List<EZBJNDIData> getMessageDestinationJNDINames(String messageDestinationName,
                                                 boolean askParent)
Allows to find Message Destination JNDI name.

Parameters:
messageDestinationName - the name of the message destination.
askParent - allow to disallow request to parent.
Returns:
a list of matching JNDI objects for the given message destination name.

getApplicationJNDIResolver

EZBApplicationJNDIResolver getApplicationJNDIResolver()
Returns:
the application JNDI Resolver.

setApplicationJNDIResolver

void setApplicationJNDIResolver(EZBApplicationJNDIResolver applicationJNDIResolver)
Sets the application resolver.

Parameters:
applicationJNDIResolver - the application resolver


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.