| java.lang.Object org.ow2.easybeans.tests.common.helper.EJBHelper
EJBHelper | final public class EJBHelper (Code) | | This helper is used to do ejb operations.
author: Eduardo Studzinski Estima de Castro author: Gisele Pinheiro Souza |
Field Summary | |
final public static String | ITF_LOCAL Constant used to identify a local interface. | final public static String | ITF_REMOTE Constant used to identify a remote interface. |
Method Summary | |
public static synchronized E | getBeanByMappedName(String mappedName) Gets an instance of a bean by the mappedName.
< Parameters: E - > the bean element type. Parameters: mappedName - the mappedName. | public static synchronized E | getBeanLocalInstance(Class beanClass, Class<E> beanInterface) Gets a local instance of a bean. | public static synchronized E | getBeanRemoteInstance(Class beanClass, Class<E> beanInterface) Gets a remote instance of a bean. |
ITF_LOCAL | final public static String ITF_LOCAL(Code) | | Constant used to identify a local interface.
|
ITF_REMOTE | final public static String ITF_REMOTE(Code) | | Constant used to identify a remote interface.
|
getBeanByMappedName | public static synchronized E getBeanByMappedName(String mappedName) throws Exception(Code) | | Gets an instance of a bean by the mappedName.
< Parameters: E - > the bean element type. Parameters: mappedName - the mappedName. the bean. throws: Exception - f occurs a problem in the instance invocation. |
getBeanLocalInstance | public static synchronized E getBeanLocalInstance(Class beanClass, Class<E> beanInterface) throws Exception(Code) | | Gets a local instance of a bean.
< Parameters: E - > bean element type Parameters: beanClass - class of the bean Parameters: beanInterface - interface of the bean bean instance throws: Exception - if occurs a problem in the instance invocation. |
getBeanRemoteInstance | public static synchronized E getBeanRemoteInstance(Class beanClass, Class<E> beanInterface) throws Exception(Code) | | Gets a remote instance of a bean.
< Parameters: E - > bean element type Parameters: beanClass - class of the bean Parameters: beanInterface - interface of the bean bean instance throws: Exception - if occurs a problem in the instance invocation |
|
|