public class EjbUtils extends Object
Constructor and Description |
---|
EjbUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
findBean(BeanType aBeanEnumValue,
BeanProxyType aType)
looks up a bean
|
static <T> T |
findResource(ContainerManagedResourceType aResourceValue)
Finds a resource managed by the container (data source, transaction manager...)
|
static void |
setStrategy(EJBUtilsStrategy strategyToSet)
Sets a new strategy object that will affect the behavior of EJB utils lookup
|
public static <T> T findBean(BeanType aBeanEnumValue, BeanProxyType aType)
T
- type of beanaBeanEnumValue
- enum literal representing the beanaType
- proxy type (local or remote)public static <T> T findResource(ContainerManagedResourceType aResourceValue)
T
- Type of the resourceaResourceValue
- enum literal representing the resourcepublic static void setStrategy(EJBUtilsStrategy strategyToSet)
strategyToSet
- the new strategy to setCopyright © 2012. All Rights Reserved.