public class BeanContext extends DeploymentContext
Modifier and Type | Class and Description |
---|---|
static interface |
BeanContext.BusinessLocalBeanHome |
static interface |
BeanContext.BusinessLocalHome |
static interface |
BeanContext.BusinessRemoteHome |
static class |
BeanContext.Comp
This ManagedBean is added to all EjbModules to effectively
create a sharable "comp" namespace which can be used in
for components with undefined namespace such as CDI
|
static class |
BeanContext.EntityManagerConfiguration |
static class |
BeanContext.ProxyClass |
static interface |
BeanContext.Removable |
static interface |
BeanContext.ServiceEndpoint |
static interface |
BeanContext.Timeout |
class |
BeanContext.ViewContext |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
USER_INTERCEPTOR_KEY |
static java.lang.String |
USER_INTERCEPTOR_SEPARATOR |
Constructor and Description |
---|
BeanContext(java.lang.String id,
javax.naming.Context jndiContext,
ModuleContext moduleContext,
java.lang.Class beanClass,
java.lang.Class homeInterface,
java.lang.Class remoteInterface,
java.lang.Class localHomeInterface,
java.lang.Class localInterface,
java.lang.Class proxy,
java.lang.Class serviceEndpointInterface,
java.util.List<java.lang.Class> businessLocals,
java.util.List<java.lang.Class> businessRemotes,
java.lang.Class pkClass,
BeanType componentType,
boolean localBean,
boolean passivable) |
BeanContext(java.lang.String id,
javax.naming.Context jndiContext,
ModuleContext moduleContext,
java.lang.Class beanClass,
java.lang.Class mdbInterface,
java.util.Map<java.lang.String,java.lang.String> activationProperties) |
Modifier and Type | Method and Description |
---|---|
void |
addApplicationException(java.lang.Class exception,
boolean rollback,
boolean inherited) |
void |
addCdiMethodInterceptor(java.lang.reflect.Method method,
InterceptorData interceptor) |
void |
addFirstSystemInterceptor(java.lang.Object interceptor) |
void |
addSecurityRoleReference(java.lang.String roleName,
java.lang.String roleLink) |
void |
addSystemInterceptor(java.lang.Object interceptor) |
void |
addUserInterceptor(java.lang.Object interceptor) |
void |
createAsynchronousMethodSet() |
void |
createMethodMap() |
java.lang.String |
getAbstractSchemaName() |
Duration |
getAccessTimeout() |
Duration |
getAccessTimeout(java.lang.reflect.Method beanMethod) |
java.util.Map<java.lang.String,java.lang.String> |
getActivationProperties() |
java.util.Set<java.lang.Class<?>> |
getAsynchronousClasses() |
java.util.Set<java.lang.String> |
getAsynchronousMethodSignatures() |
java.lang.Class |
getBeanClass() |
BeanContext.BusinessLocalBeanHome |
getBusinessLocalBeanHome() |
java.lang.Class |
getBusinessLocalBeanInterface() |
BeanContext.BusinessLocalHome |
getBusinessLocalHome() |
BeanContext.BusinessLocalHome |
getBusinessLocalHome(java.lang.Class mainInterface) |
BeanContext.BusinessLocalHome |
getBusinessLocalHome(java.util.List<java.lang.Class> interfaces,
java.lang.Class mainInterface) |
java.lang.Class |
getBusinessLocalInterface() |
java.util.List<java.lang.Class> |
getBusinessLocalInterfaces() |
BeanContext.BusinessRemoteHome |
getBusinessRemoteHome() |
BeanContext.BusinessRemoteHome |
getBusinessRemoteHome(java.lang.Class mainInterface) |
BeanContext.BusinessRemoteHome |
getBusinessRemoteHome(java.util.List<java.lang.Class> interfaces,
java.lang.Class mainInterface) |
java.lang.Class |
getBusinessRemoteInterface() |
java.util.List<java.lang.Class> |
getBusinessRemoteInterfaces() |
java.util.List<InterceptorData> |
getCallbackInterceptors() |
java.util.List<InterceptorData> |
getCdiInterceptors() |
java.lang.ClassLoader |
getClassLoader() |
java.lang.Class |
getCmpImplClass() |
BeanType |
getComponentType() |
LockType |
getConcurrencyAttribute(java.lang.reflect.Method beanMethod) |
Container |
getContainer() |
java.lang.Object |
getContainerData() |
java.lang.reflect.Method |
getCreateMethod() |
java.util.Set<java.lang.String> |
getDependsOn() |
java.lang.Object |
getDeploymentID() |
java.lang.String |
getDestinationId() |
EJBHome |
getEJBHome() |
EJBLocalHome |
getEJBLocalHome() |
java.lang.String |
getEjbName() |
java.lang.reflect.Method |
getEjbTimeout() |
EjbTimerService |
getEjbTimerService() |
ExceptionType |
getExceptionType(java.lang.Throwable e) |
Index<EntityManagerFactory,BeanContext.EntityManagerConfiguration> |
getExtendedEntityManagerFactories() |
java.lang.Class |
getHomeInterface() |
java.util.List<Injection> |
getInjections() |
java.util.Set<InterceptorData> |
getInstanceScopedInterceptors()
When an instance of an EJB is instantiated, everything in this list
is also instatiated and tied to the bean instance.
|
java.util.List<InterceptorData> |
getInterceptorData() |
java.lang.Class |
getInterface(InterfaceType interfaceType) |
java.util.List<java.lang.Class> |
getInterfaces(InterfaceType interfaceType) |
InterfaceType |
getInterfaceType(java.lang.Class clazz) |
javax.naming.Context |
getJndiContext() |
javax.naming.Context |
getJndiEnc() |
KeyGenerator |
getKeyGenerator() |
java.lang.Class |
getLocalHomeInterface() |
java.lang.Class |
getLocalInterface() |
LockType |
getLockType() |
java.lang.Class<java.lang.Object> |
getManagedClass() |
java.lang.reflect.Method |
getMatchingBeanMethod(java.lang.reflect.Method interfaceMethod) |
java.lang.reflect.Method |
getMatchingPostCreateMethod(java.lang.reflect.Method createMethod) |
java.lang.Class |
getMdbInterface() |
MethodContext |
getMethodContext(java.lang.reflect.Method method) |
java.util.List<InterceptorData> |
getMethodInterceptors(java.lang.reflect.Method method) |
ModuleContext |
getModuleContext() |
java.lang.String |
getModuleID() |
java.lang.String |
getModuleName() |
java.util.List<java.lang.Class> |
getObjectInterface(java.lang.Class homeInterface) |
java.lang.Class |
getPrimaryKeyClass() |
java.lang.String |
getPrimaryKeyField() |
java.lang.Class<?> |
getProxyClass() |
java.lang.Class |
getRemoteInterface() |
java.util.List<java.lang.reflect.Method> |
getRemoveMethods() |
java.lang.String |
getRunAs() |
java.lang.String |
getRunAsUser() |
java.lang.String |
getSecurityRoleReference(java.lang.String roleName) |
java.lang.Class |
getServiceEndpointInterface() |
Duration |
getStatefulTimeout() |
TransactionPolicyFactory |
getTransactionPolicyFactory() |
TransactionType |
getTransactionType() |
TransactionType |
getTransactionType(java.lang.reflect.Method method) |
TransactionType |
getTransactionType(java.lang.reflect.Method method,
InterfaceType interfaceType) |
java.util.List<InterceptorInstance> |
getUserAndSystemInterceptors() |
WebBeansContext |
getWebBeansContext() |
<T> void |
inject(T instance,
<any> ctx) |
boolean |
isAsynchronous(java.lang.reflect.Method method) |
boolean |
isBeanManagedConcurrency() |
boolean |
isBeanManagedTransaction() |
boolean |
isCdiCompatible() |
boolean |
isCmp2() |
boolean |
isDestroyed() |
boolean |
isDynamicallyImplemented() |
boolean |
isHidden() |
boolean |
isLoadOnStartup() |
boolean |
isLocalbean() |
boolean |
isPassivable() |
boolean |
isPassivatingScope() |
boolean |
isReentrant() |
boolean |
isRemoteQueryResults(java.lang.String methodSignature) |
boolean |
isSessionSynchronized() |
java.util.Iterator<java.util.Map.Entry<java.lang.reflect.Method,MethodContext>> |
iteratorMethodContext() |
void |
mapMethods(java.lang.reflect.Method interfaceMethod,
java.lang.reflect.Method beanMethod) |
void |
mergeOWBAndOpenEJBInfo() |
InstanceContext |
newInstance() |
boolean |
retainIfExeption(java.lang.reflect.Method removeMethod)
TODO: Move to MethodContext
|
void |
setAbstractSchemaName(java.lang.String abstractSchemaName) |
void |
setAccessTimeout(Duration accessTimeout) |
void |
setBeanManagedConcurrency(boolean beanManagedConcurrency) |
void |
setBeanManagedTransaction(boolean value) |
void |
setCallbackInterceptors(java.util.List<InterceptorData> callbackInterceptors) |
void |
setCdiInterceptors(java.util.List<InterceptorData> cdiInterceptors) |
void |
setCmp2(boolean cmp2) |
void |
setCmpImplClass(java.lang.Class cmpImplClass) |
void |
setContainer(Container container) |
void |
setContainerData(java.lang.Object containerData) |
void |
setDestinationId(java.lang.String destinationId) |
void |
setDestroyed(boolean destroyed) |
void |
setEjbName(java.lang.String ejbName) |
void |
setEjbTimeout(java.lang.reflect.Method ejbTimeout) |
void |
setEjbTimerService(EjbTimerService ejbTimerService) |
void |
setExtendedEntityManagerFactories(Index<EntityManagerFactory,BeanContext.EntityManagerConfiguration> extendedEntityManagerFactories) |
void |
setHidden(boolean hidden) |
void |
setIsReentrant(boolean reentrant) |
void |
setKeyGenerator(KeyGenerator keyGenerator) |
void |
setLoadOnStartup(boolean loadOnStartup) |
void |
setMethodConcurrencyAttribute(java.lang.reflect.Method method,
LockType concurrencyAttribute) |
void |
setMethodInterceptors(java.lang.reflect.Method method,
java.util.List<InterceptorData> interceptors) |
void |
setMethodTransactionAttribute(java.lang.reflect.Method method,
TransactionType transactionType)
TODO: Move to MethodContext
|
void |
setMethodTransactionAttribute(java.lang.reflect.Method method,
TransactionType transactionType,
java.lang.String view)
TODO: Move to MethodContext
|
void |
setPrimaryKeyField(java.lang.String primaryKeyField) |
void |
setRemoteQueryResults(java.lang.String methodSignature) |
void |
setRetainIfExeption(java.lang.reflect.Method removeMethod,
boolean retain)
TODO: Move to MethodContext
|
void |
setRunAs(java.lang.String runAs) |
void |
setRunAsUser(java.lang.String runAsUser) |
void |
setStatefulTimeout(Duration statefulTimeout) |
void |
setTransactionPolicyFactory(TransactionPolicyFactory transactionPolicyFactory) |
void |
stop() |
java.lang.String |
toString() |
get, getId, getOptions, getProperties, set
public static final java.lang.String USER_INTERCEPTOR_KEY
public static final java.lang.String USER_INTERCEPTOR_SEPARATOR
public BeanContext(java.lang.String id, javax.naming.Context jndiContext, ModuleContext moduleContext, java.lang.Class beanClass, java.lang.Class homeInterface, java.lang.Class remoteInterface, java.lang.Class localHomeInterface, java.lang.Class localInterface, java.lang.Class proxy, java.lang.Class serviceEndpointInterface, java.util.List<java.lang.Class> businessLocals, java.util.List<java.lang.Class> businessRemotes, java.lang.Class pkClass, BeanType componentType, boolean localBean, boolean passivable) throws SystemException
SystemException
public BeanContext(java.lang.String id, javax.naming.Context jndiContext, ModuleContext moduleContext, java.lang.Class beanClass, java.lang.Class mdbInterface, java.util.Map<java.lang.String,java.lang.String> activationProperties) throws SystemException
SystemException
public boolean isDynamicallyImplemented()
public void mergeOWBAndOpenEJBInfo()
public java.lang.Class getInterface(InterfaceType interfaceType)
public java.util.List<java.lang.Class> getInterfaces(InterfaceType interfaceType)
public InterfaceType getInterfaceType(java.lang.Class clazz)
public void addApplicationException(java.lang.Class exception, boolean rollback, boolean inherited)
public ExceptionType getExceptionType(java.lang.Throwable e)
public java.lang.Object getContainerData()
public void setContainerData(java.lang.Object containerData)
public java.lang.ClassLoader getClassLoader()
public javax.naming.Context getJndiContext()
public ModuleContext getModuleContext()
public boolean isDestroyed()
public void setDestroyed(boolean destroyed)
public java.util.List<Injection> getInjections()
public Index<EntityManagerFactory,BeanContext.EntityManagerConfiguration> getExtendedEntityManagerFactories()
public void setExtendedEntityManagerFactories(Index<EntityManagerFactory,BeanContext.EntityManagerConfiguration> extendedEntityManagerFactories)
public void setContainer(Container container)
public BeanType getComponentType()
public LockType getConcurrencyAttribute(java.lang.reflect.Method beanMethod)
public LockType getLockType()
public TransactionType getTransactionType(java.lang.reflect.Method method)
public TransactionType getTransactionType(java.lang.reflect.Method method, InterfaceType interfaceType)
public TransactionType getTransactionType()
public TransactionPolicyFactory getTransactionPolicyFactory()
public void setTransactionPolicyFactory(TransactionPolicyFactory transactionPolicyFactory)
public Container getContainer()
public java.lang.Object getDeploymentID()
public boolean isBeanManagedTransaction()
public boolean isBeanManagedConcurrency()
public java.lang.Class getHomeInterface()
public java.lang.Class getRemoteInterface()
public java.lang.Class getLocalHomeInterface()
public java.lang.Class getLocalInterface()
public java.lang.Class getBeanClass()
public java.lang.Class getBusinessLocalInterface()
public java.lang.Class getBusinessRemoteInterface()
public java.util.List<java.lang.Class> getBusinessLocalInterfaces()
public java.util.List<java.lang.Class> getBusinessRemoteInterfaces()
public java.lang.Class getMdbInterface()
public java.lang.Class getServiceEndpointInterface()
public java.util.Map<java.lang.String,java.lang.String> getActivationProperties()
public java.lang.Class getPrimaryKeyClass()
public EJBHome getEJBHome()
public EJBLocalHome getEJBLocalHome()
public BeanContext.BusinessLocalHome getBusinessLocalHome()
public BeanContext.BusinessLocalBeanHome getBusinessLocalBeanHome()
public BeanContext.BusinessLocalHome getBusinessLocalHome(java.lang.Class mainInterface)
public BeanContext.BusinessLocalHome getBusinessLocalHome(java.util.List<java.lang.Class> interfaces, java.lang.Class mainInterface)
public BeanContext.BusinessRemoteHome getBusinessRemoteHome()
public BeanContext.BusinessRemoteHome getBusinessRemoteHome(java.lang.Class mainInterface)
public BeanContext.BusinessRemoteHome getBusinessRemoteHome(java.util.List<java.lang.Class> interfaces, java.lang.Class mainInterface)
public java.lang.String getDestinationId()
public void setDestinationId(java.lang.String destinationId)
public void setBeanManagedTransaction(boolean value)
public void setBeanManagedConcurrency(boolean beanManagedConcurrency)
public javax.naming.Context getJndiEnc()
public boolean isReentrant()
public void setIsReentrant(boolean reentrant)
public java.lang.reflect.Method getMatchingBeanMethod(java.lang.reflect.Method interfaceMethod)
public MethodContext getMethodContext(java.lang.reflect.Method method)
public java.util.Iterator<java.util.Map.Entry<java.lang.reflect.Method,MethodContext>> iteratorMethodContext()
public void setMethodConcurrencyAttribute(java.lang.reflect.Method method, LockType concurrencyAttribute)
public void setMethodTransactionAttribute(java.lang.reflect.Method method, TransactionType transactionType) throws OpenEJBException
OpenEJBException
public void setMethodTransactionAttribute(java.lang.reflect.Method method, TransactionType transactionType, java.lang.String view) throws OpenEJBException
OpenEJBException
public java.util.List<java.lang.reflect.Method> getRemoveMethods()
public void setRetainIfExeption(java.lang.reflect.Method removeMethod, boolean retain)
public boolean retainIfExeption(java.lang.reflect.Method removeMethod)
public java.util.Set<InterceptorData> getInstanceScopedInterceptors()
public void addSystemInterceptor(java.lang.Object interceptor)
public void addFirstSystemInterceptor(java.lang.Object interceptor)
public void addUserInterceptor(java.lang.Object interceptor)
public java.util.List<InterceptorInstance> getUserAndSystemInterceptors()
public java.util.List<InterceptorData> getCallbackInterceptors()
public void setCallbackInterceptors(java.util.List<InterceptorData> callbackInterceptors)
public java.util.List<InterceptorData> getCdiInterceptors()
public void setCdiInterceptors(java.util.List<InterceptorData> cdiInterceptors)
public java.util.List<InterceptorData> getMethodInterceptors(java.lang.reflect.Method method)
public java.util.List<InterceptorData> getInterceptorData()
public void addCdiMethodInterceptor(java.lang.reflect.Method method, InterceptorData interceptor)
public void setMethodInterceptors(java.lang.reflect.Method method, java.util.List<InterceptorData> interceptors)
public void createMethodMap() throws SystemException
SystemException
public void mapMethods(java.lang.reflect.Method interfaceMethod, java.lang.reflect.Method beanMethod)
public java.util.List<java.lang.Class> getObjectInterface(java.lang.Class homeInterface)
public java.lang.reflect.Method getCreateMethod()
public java.lang.reflect.Method getMatchingPostCreateMethod(java.lang.reflect.Method createMethod)
public boolean isAsynchronous(java.lang.reflect.Method method)
public boolean isCmp2()
public void setCmp2(boolean cmp2)
public java.lang.String getPrimaryKeyField()
public void setPrimaryKeyField(java.lang.String primaryKeyField)
public KeyGenerator getKeyGenerator()
public void setKeyGenerator(KeyGenerator keyGenerator)
public void setRemoteQueryResults(java.lang.String methodSignature)
public boolean isRemoteQueryResults(java.lang.String methodSignature)
public java.lang.Class getCmpImplClass()
public void setCmpImplClass(java.lang.Class cmpImplClass)
public java.lang.String getAbstractSchemaName()
public void setAbstractSchemaName(java.lang.String abstractSchemaName)
public java.lang.reflect.Method getEjbTimeout()
public void setEjbTimeout(java.lang.reflect.Method ejbTimeout)
public EjbTimerService getEjbTimerService()
public void setEjbTimerService(EjbTimerService ejbTimerService)
public java.lang.String getEjbName()
public java.lang.String getModuleID()
public java.lang.String getModuleName()
public java.lang.String getRunAs()
public java.lang.String getRunAsUser()
public void setEjbName(java.lang.String ejbName)
public void setRunAs(java.lang.String runAs)
public void setRunAsUser(java.lang.String runAsUser)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isLoadOnStartup()
public void setLoadOnStartup(boolean loadOnStartup)
public java.util.Set<java.lang.String> getDependsOn()
public boolean isSessionSynchronized()
public boolean isLocalbean()
public java.lang.Class getBusinessLocalBeanInterface()
public Duration getAccessTimeout(java.lang.reflect.Method beanMethod)
public Duration getAccessTimeout()
public void setAccessTimeout(Duration accessTimeout)
public Duration getStatefulTimeout()
public void setStatefulTimeout(Duration statefulTimeout)
public java.lang.Class<java.lang.Object> getManagedClass()
public InstanceContext newInstance() throws java.lang.Exception
java.lang.Exception
public <T> void inject(T instance, <any> ctx)
public WebBeansContext getWebBeansContext()
public java.util.Set<java.lang.Class<?>> getAsynchronousClasses()
public java.util.Set<java.lang.String> getAsynchronousMethodSignatures()
public void createAsynchronousMethodSet()
public java.lang.Class<?> getProxyClass()
public boolean isCdiCompatible()
public boolean isHidden()
public void setHidden(boolean hidden)
public boolean isPassivatingScope()
public boolean isPassivable()
public void stop()
public void addSecurityRoleReference(java.lang.String roleName, java.lang.String roleLink)
public java.lang.String getSecurityRoleReference(java.lang.String roleName)