org.ow2.easybeans.resolver.api
Interface EZBJNDIResolver

All Known Subinterfaces:
EZBApplicationJNDIResolver, EZBContainerJNDIResolver, EZBServerJNDIResolver

public interface EZBJNDIResolver

Interface that all JNDI Resolver should use.

Author:
Florent Benoit

Method Summary
 List<EZBJNDIBeanData> getEJBJNDINames(String interfaceName)
          Allows to find EJB JNDI name.
 List<EZBJNDIBeanData> getEJBJNDINames(String interfaceName, String beanName)
          Allows to find EJB JNDI name.
 String getEJBJNDIUniqueName(String interfaceName, String beanName)
          Gets jndi name for a given interface and a bean name.
 List<EZBJNDIData> getMessageDestinationJNDINames(String messageDestinationName)
          Allows to find Message Destination JNDI name.
 String getMessageDestinationJNDIUniqueName(String messageDestinationName)
          Allows to find Message Destination JNDI name.
 

Method Detail

getEJBJNDINames

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

Parameters:
interfaceName - the name of the interface that EJBs are implementing.
Returns:
a list of matching JNDI objects for the given interface and bean name.

getEJBJNDINames

List<EZBJNDIBeanData> getEJBJNDINames(String interfaceName,
                                      String beanName)
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.
Returns:
a list of matching JNDI objects for the given interface and bean name.

getEJBJNDIUniqueName

String getEJBJNDIUniqueName(String interfaceName,
                            String beanName)
                            throws EZBJNDIResolverException
Gets jndi name for a given interface and a bean name.

Parameters:
interfaceName - the name of the interface.
beanName - the name of the bean.
Returns:
the jndi name
Throws:
EZBJNDIResolverException - if not found

getMessageDestinationJNDINames

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

Parameters:
messageDestinationName - the name of the message destination.
Returns:
a list of matching JNDI objects for the given message destination name.

getMessageDestinationJNDIUniqueName

String getMessageDestinationJNDIUniqueName(String messageDestinationName)
                                           throws EZBJNDIResolverException
Allows to find Message Destination JNDI name.

Parameters:
messageDestinationName - the name of the message destination.
Returns:
a list of matching JNDI objects for the given message destination name.
Throws:
EZBJNDIResolverException - if not found


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