public abstract class EJBUtilsStrategy extends Object
Modifier and Type | Field and Description |
---|---|
protected HashMap<BeanType,String> |
beanTypeToJNDINameMap |
protected HashMap<ContainerManagedResourceType,String> |
resourceTypeToJNDINameMap |
Modifier | Constructor and Description |
---|---|
protected |
EJBUtilsStrategy() |
Modifier and Type | Method and Description |
---|---|
protected void |
addBeanJNDIName(BeanType aEnumValue,
String aJNDIName) |
protected abstract void |
addJNDIBeans() |
protected void |
addJNDIResources() |
protected void |
addResourceJNDIName(ContainerManagedResourceType aResourceEnumValue,
String aJNDIName) |
protected Context |
createRemoteContext() |
<T> T |
findBean(BeanType beanType,
BeanProxyType proxyType)
Finds a bean according to the bean type and proxy type
|
<T> T |
findResource(ContainerManagedResourceType resourceValue)
Finds a bean according to its JNDI name
|
protected String |
getBeanJNDIName(BeanType aEnumValue) |
protected abstract String |
getBeanSuffix(BeanType beanType,
BeanProxyType proxyType) |
protected String |
getResourceJNDIName(ContainerManagedResourceType aResourceEnumValue) |
protected HashMap<ContainerManagedResourceType,String> resourceTypeToJNDINameMap
protected abstract void addJNDIBeans()
protected abstract String getBeanSuffix(BeanType beanType, BeanProxyType proxyType)
protected void addJNDIResources()
public <T> T findResource(ContainerManagedResourceType resourceValue)
T
- interface that the bean implementsname
- JNDI namepublic <T> T findBean(BeanType beanType, BeanProxyType proxyType)
T
- aBeanType
- aType
- protected Context createRemoteContext() throws NamingException
NamingException
protected void addResourceJNDIName(ContainerManagedResourceType aResourceEnumValue, String aJNDIName)
protected String getResourceJNDIName(ContainerManagedResourceType aResourceEnumValue)
Copyright © 2012. All Rights Reserved.