|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.EJBContainer
public abstract class EJBContainer
Comment
| Field Summary | |
|---|---|
protected org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData |
assembly
|
protected java.lang.String |
beanClassName
|
protected java.lang.ClassLoader |
classloader
|
protected java.lang.String |
ejbName
|
protected javax.naming.Context |
enc
|
protected EjbEncFactory |
encFactory
|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.reflect.AccessibleObject,Injector>> |
encInjections
|
protected java.util.Map<java.lang.String,EncInjector> |
encInjectors
|
static java.lang.String |
ENTITY_MANAGER_FACTORY
|
protected java.util.Hashtable |
initialContextProperties
|
protected java.util.List<Injector> |
injectors
|
protected InvocationStatistics |
invokeStats
|
static java.lang.String |
MANAGED_ENTITY_MANAGER_FACTORY
|
protected org.jboss.ejb3.metadata.annotation.AnnotationRepositoryToMetaData |
metadataBasedAnnotationRepo
Metadata based annotation repository |
protected javax.management.ObjectName |
objectName
|
protected Pool |
pool
|
protected boolean |
reinitialize
|
protected org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData |
xml
|
| Fields inherited from interface org.jboss.ejb3.Container |
|---|
ENC_CTX_NAME |
| Constructor Summary | |
|---|---|
protected |
EJBContainer(java.lang.String name,
org.jboss.aop.Domain domain,
java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData)
|
protected |
EJBContainer(java.lang.String name,
org.jboss.aop.Domain domain,
java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
java.util.Hashtable ctxProperties,
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData)
Create an EJBContainer |
| Method Summary | ||
|---|---|---|
protected void |
afterStart()
Invoked after all the dependencies on the containers have satisfied and the container is completely started and open for invocations. |
|
boolean |
canResolveEJB()
Deprecated. |
|
protected void |
checkForDuplicateLocalAndRemoteInterfaces()
Ensures that the bean does not implement any one interface as both @Local and @Remote EJBTHREE-1025 |
|
protected java.lang.Object |
construct()
Delegates bean instance construction to the beanInstantiator |
|
void |
create()
|
|
abstract BeanContext<?> |
createBeanContext()
Create a bean context for use in a pool. |
|
java.lang.Object |
createInterceptor(java.lang.Class<?> interceptorClass)
Do not call, for BeanContainer. |
|
java.lang.String |
createObjectName(java.lang.String ejbName)
Create an object name for the given EJB name in the same JavaEE module. |
|
java.lang.String |
createObjectName(java.lang.String unitName,
java.lang.String ejbName)
Create an object name for the given EJB name in another JavaEE module. |
|
void |
destroy()
|
|
void |
destroyBeanContext(org.jboss.ejb3.interceptors.container.BeanContext<?> ctx)
Do nothing. |
|
protected void |
findPartitionName()
|
|
org.jboss.aop.Advisor |
getAdvisor()
Deprecated. |
|
|
getAnnotation(java.lang.Class<T> annotationType)
|
|
|
getAnnotation(java.lang.Class<T> annotationType,
java.lang.Class<?> clazz)
If class has container overridable annotations, this method will discover those overriden annotations. |
|
|
getAnnotation(java.lang.Class<T> annotationType,
java.lang.Class<?> clazz,
java.lang.reflect.Field field)
If class has container overridable annotations, this method will discover those overriden annotations. |
|
|
getAnnotation(java.lang.Class<T> annotationType,
java.lang.Class<?> clazz,
java.lang.reflect.Method method)
If class has container overridable annotations, this method will discover those overriden annotations. |
|
|
getAnnotation(java.lang.Class<T> annotationType,
java.lang.reflect.Field field)
|
|
|
getAnnotation(java.lang.Class<T> annotationType,
java.lang.reflect.Method method)
|
|
org.jboss.aop.annotation.AnnotationRepository |
getAnnotations()
Deprecated. |
|
javax.ejb.ApplicationException |
getApplicationException(java.lang.Class<?> exceptionType,
java.lang.reflect.Method invokedMethod)
|
|
org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData |
getAssemblyDescriptor()
|
|
java.lang.Class<?> |
getBeanClass()
|
|
java.lang.String |
getBeanClassName()
|
|
protected BeanContainer |
getBeanContainer()
|
|
protected org.jboss.ejb3.instantiator.spi.BeanInstantiator |
getBeanInstantiator()
|
|
java.util.List<java.lang.Class<?>> |
getBusinessAndComponentInterfaces()
Return all the business interfaces implemented by this bean. |
|
|
getBusinessObject(BeanContext<?> beanContext,
java.lang.Class<T> businessInterface)
|
|
org.jboss.jca.spi.ComponentStack |
getCachedConnectionManager()
|
|
java.lang.ClassLoader |
getClassloader()
|
|
java.lang.Class<?> |
getClazz()
Deprecated. use getBeanClass |
|
DependencyPolicy |
getDependencyPolicy()
|
|
Ejb3Deployment |
getDeployment()
|
|
java.lang.String |
getDeploymentDescriptorType()
For error messages |
|
java.lang.String |
getDeploymentPropertyListString()
Returns a String identifier for this bean that is qualified by the deployment, and hence should be unique across deployments. |
|
java.lang.String |
getDeploymentQualifiedName()
|
|
DeploymentUnit |
getDeploymentUnit()
|
|
protected org.jboss.ejb3.effigy.EnterpriseBeanEffigy |
getEffigy()
|
|
static
|
getEJBContainer(org.jboss.aop.Advisor advisor)
|
|
javax.ejb.EJBHome |
getEJBHome()
|
|
java.lang.String |
getEjbJndiName(java.lang.Class businessInterface)
|
|
java.lang.String |
getEjbJndiName(java.lang.String link,
java.lang.Class businessInterface)
|
|
javax.ejb.EJBLocalHome |
getEJBLocalHome()
|
|
java.lang.String |
getEjbName()
|
|
javax.naming.Context |
getEnc()
|
|
java.util.Map<java.lang.String,java.util.Map<java.lang.reflect.AccessibleObject,Injector>> |
getEncInjections()
|
|
java.util.Map<java.lang.String,EncInjector> |
getEncInjectors()
|
|
org.jboss.metadata.javaee.spec.Environment |
getEnvironmentRefGroup()
|
|
protected java.lang.Class[] |
getHandledCallbacks()
|
|
java.lang.String |
getIdentifier()
Some identifier that can be used in error messages |
|
javax.naming.InitialContext |
getInitialContext()
|
|
java.util.Hashtable |
getInitialContextProperties()
|
|
protected java.util.Collection<InjectionHandler<org.jboss.metadata.javaee.spec.Environment>> |
getInjectionHandlers()
|
|
java.util.List<Injector> |
getInjectors()
|
|
java.util.Collection<java.lang.Class<?>> |
getInterceptorClasses()
|
|
java.util.Map<java.lang.Class<?>,InterceptorInjector> |
getInterceptorInjectors()
|
|
InterceptorInfoRepository |
getInterceptorRepository()
|
|
protected org.jboss.aop.advice.Interceptor[] |
getInterceptors(org.jboss.aop.joinpoint.Joinpoint joinPoint,
java.lang.String interceptorStackName)
|
|
java.util.concurrent.locks.Lock |
getInvocationLock()
|
|
java.lang.Object |
getInvokedBusinessInterface(BeanContext beanContext)
|
|
protected java.lang.Object |
getInvokedInterface(java.lang.reflect.Method method)
|
|
InvocationStatistics |
getInvokeStats()
|
|
java.lang.String |
getJaccContextId()
|
|
org.jboss.ejb3.metadata.annotation.AnnotationRepositoryToMetaData |
getMetaDataBasedAnnotationRepository()
Returns AnnotationRepositoryToMetaData corresponding to this EJBContainer. |
|
protected org.jboss.aop.MethodInfo |
getMethodInfo(java.lang.reflect.Method method)
Deprecated. |
|
JavaEEModule |
getModule()
Returns the module of which this component is a part. |
|
java.lang.String |
getName()
|
|
protected java.lang.reflect.Method |
getNonBridgeMethod(java.lang.reflect.Method bridgeMethod)
|
|
javax.management.ObjectName |
getObjectName()
|
|
java.lang.String |
getPartitionName()
Gets the name of the cluster partition with which this container is associated. |
|
Pool |
getPool()
|
|
boolean |
getRollbackOnly()
|
|
org.jboss.ejb3.vfs.spi.VirtualFile |
getRootFile()
|
|
|
getSecurityManager(java.lang.Class<T> type)
Get the security manager associated with a container. |
|
protected java.lang.reflect.Method |
getTimeoutCallback(org.jboss.metadata.ejb.spec.NamedMethodMetaData timeoutMethodMetaData,
java.lang.Class<?> beanClass)
|
|
javax.transaction.UserTransaction |
getUserTransaction()
|
|
java.util.List<java.lang.reflect.Method> |
getVirtualMethods()
Do not call, used by BeanContainer. |
|
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData |
getXml()
|
|
abstract boolean |
hasJNDIBinding(java.lang.String jndiName)
|
|
protected void |
initializePool()
|
|
protected void |
initMetaDataBasedAnnotationRepository()
Initializes the metadata based annotation repository AnnotationRepositoryToMetaData,
by setting up the appropriate metadata bridges. |
|
void |
injectBeanContext(BeanContext<?> beanContext)
Note this method is a WIP. |
|
void |
instantiated()
After XML processing has been done this allows the container to further initialize the meta data. |
|
protected void |
invokeCallback(BeanContext<?> beanContext,
java.lang.Class<? extends java.lang.annotation.Annotation> callbackAnnotationClass)
Note that this method is a WIP. |
|
void |
invokePostActivate(BeanContext beanContext)
|
|
void |
invokePostConstruct(BeanContext<?> beanContext)
|
|
void |
invokePostConstruct(BeanContext beanContext,
java.lang.Object[] params)
Deprecated. |
|
void |
invokePreDestroy(BeanContext beanContext)
|
|
void |
invokePrePassivate(BeanContext beanContext)
|
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
|
boolean |
isBusinessMethod(java.lang.reflect.Method businessMethod)
Is the method a business method of this container. |
|
boolean |
isCallerInRole(java.security.Principal callerPrincipal,
java.lang.String roleName)
|
|
boolean |
isClustered()
|
|
protected void |
lockedStart()
|
|
protected void |
lockedStop()
|
|
java.lang.Object |
lookup(java.lang.String name)
|
|
BeanContext<?> |
peekContext()
|
|
BeanContext<?> |
popContext()
|
|
protected void |
popEnc()
Pops EJB's ENC from the stack. |
|
void |
processMetadata()
introspects EJB container to find all dependencies and initialize any extra metadata. |
|
void |
pushContext(BeanContext<?> beanContext)
|
|
protected void |
pushEnc()
Makes sure that EJB's ENC is available Delegates to whatever implementation is used to push the ENC of the EJB onto the stack |
|
protected void |
reinitialize()
|
|
java.lang.Object |
resolveAnnotation(java.lang.Class annotationType)
Deprecated. use getAnnotation |
|
java.lang.Object |
resolveAnnotation(java.lang.reflect.Field field,
java.lang.Class annotationType)
Deprecated. use getAnnotation |
|
java.lang.Object |
resolveAnnotation(java.lang.reflect.Method method,
java.lang.Class annotationType)
Deprecated. use getAnnotation |
|
java.lang.Object |
resolveAnnotation(java.lang.reflect.Method m,
java.lang.Class[] annotationChoices)
Deprecated. this is going to be gone soon |
|
protected abstract java.util.List<java.lang.Class<?>> |
resolveBusinessInterfaces()
|
|
java.lang.String |
resolveEJB(java.lang.String link,
java.lang.Class<?> beanInterface,
java.lang.String mappedName)
|
|
Container |
resolveEjbContainer(java.lang.Class businessIntf)
|
|
Container |
resolveEjbContainer(java.lang.String link,
java.lang.Class businessIntf)
|
|
protected void |
resolveInjectors()
Deprecated. EJBContainer is no longer responsible for setting up
ENC. Instead, SwitchBoard http://community.jboss.org/wiki/Switchboard
will be setting it up. |
|
java.lang.String |
resolveMessageDestination(java.lang.String link)
Find a message destination in a deployment. |
|
java.lang.String |
resolvePersistenceUnitSupplier(java.lang.String unitName)
Find the MC bean that supplies the specified persistence unit. |
|
void |
setAssemblyDescriptor(org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData assembly)
Deprecated. |
|
void |
setBeanInstantiator(org.jboss.ejb3.instantiator.spi.BeanInstantiator beanInstantiator)
|
|
void |
setCachedConnectionManager(org.jboss.jca.spi.ComponentStack ccm)
|
|
void |
setDirectContainer(org.jboss.ejb3.interceptors.direct.DirectContainer<EJBContainer> container)
|
|
void |
setEjbEncFactory(EjbEncFactory encFactory)
|
|
void |
setInjectionManager(org.jboss.injection.manager.spi.InjectionManager injectionManager)
|
|
void |
setJaccContextId(java.lang.String jaccContextId)
|
|
void |
setRollbackOnly()
|
|
void |
setTransactionManager(javax.transaction.TransactionManager tm)
|
|
void |
start()
This should have been final, but ServiceContainer wants to butt in. |
|
void |
stop()
This should have been final, but ServiceContainer wants to butt in. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.ejb3.Container |
|---|
getMBean, getTimerService, getTimerService |
| Field Detail |
|---|
protected EjbEncFactory encFactory
protected Pool pool
protected java.lang.String ejbName
protected javax.management.ObjectName objectName
protected final java.lang.String beanClassName
protected final java.lang.ClassLoader classloader
protected java.util.List<Injector> injectors
protected javax.naming.Context enc
protected java.util.Hashtable initialContextProperties
protected java.util.Map<java.lang.String,EncInjector> encInjectors
protected org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData xml
protected org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData assembly
protected java.util.Map<java.lang.String,java.util.Map<java.lang.reflect.AccessibleObject,Injector>> encInjections
protected InvocationStatistics invokeStats
protected boolean reinitialize
protected org.jboss.ejb3.metadata.annotation.AnnotationRepositoryToMetaData metadataBasedAnnotationRepo
public static final java.lang.String MANAGED_ENTITY_MANAGER_FACTORY
public static final java.lang.String ENTITY_MANAGER_FACTORY
| Constructor Detail |
|---|
protected EJBContainer(java.lang.String name,
org.jboss.aop.Domain domain,
java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData)
throws java.lang.ClassNotFoundException
name - Advisor namemanager - Domain to get interceptor bindings fromcl - the EJB's classloaderbeanClassName - ejbName - ctxProperties - interceptorRepository - deployment - beanMetaData - the meta data for this bean or null
java.lang.ClassNotFoundException
protected EJBContainer(java.lang.String name,
org.jboss.aop.Domain domain,
java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
java.util.Hashtable ctxProperties,
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData)
throws java.lang.ClassNotFoundException
name - Name for the EJB containermanager - Domain to get interceptor bindings fromcl - the EJB's classloaderbeanClassName - Fully qualified name of the ejb classejbName - The name of the EJB to which this container correspondsctxProperties - Context properties for this beanbeanMetaData - the meta data for this bean or null
java.lang.ClassNotFoundException| Method Detail |
|---|
@Deprecated public boolean canResolveEJB()
EJBInjectionContainer
canResolveEJB in interface EJBInjectionContainerpublic abstract BeanContext<?> createBeanContext()
Container
createBeanContext in interface Containerpublic java.lang.String createObjectName(java.lang.String ejbName)
JavaEEComponent
createObjectName in interface JavaEEComponent
public java.lang.Object createInterceptor(java.lang.Class<?> interceptorClass)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.IllegalAccessException
java.lang.InstantiationException
public java.lang.String createObjectName(java.lang.String unitName,
java.lang.String ejbName)
JavaEEComponent
createObjectName in interface JavaEEComponentpublic void destroyBeanContext(org.jboss.ejb3.interceptors.container.BeanContext<?> ctx)
ctx - @Deprecated public org.jboss.aop.Advisor getAdvisor()
@Deprecated public org.jboss.aop.annotation.AnnotationRepository getAnnotations()
public javax.ejb.ApplicationException getApplicationException(java.lang.Class<?> exceptionType,
java.lang.reflect.Method invokedMethod)
protected BeanContainer getBeanContainer()
public java.util.Collection<java.lang.Class<?>> getInterceptorClasses()
public java.util.Map<java.lang.Class<?>,InterceptorInjector> getInterceptorInjectors()
public java.lang.Class<?> getClazz()
protected org.jboss.ejb3.effigy.EnterpriseBeanEffigy getEffigy()
public static <C extends EJBContainer> C getEJBContainer(org.jboss.aop.Advisor advisor)
public java.lang.String getName()
getName in interface Containerpublic void pushContext(BeanContext<?> beanContext)
pushContext in interface Containerprotected void pushEnc()
public BeanContext<?> peekContext()
peekContext in interface Containerpublic BeanContext<?> popContext()
popContext in interface Containerprotected void popEnc()
public org.jboss.metadata.javaee.spec.Environment getEnvironmentRefGroup()
getEnvironmentRefGroup in interface InjectionContainerpublic java.util.List<Injector> getInjectors()
getInjectors in interface InjectionContainerpublic java.lang.String getJaccContextId()
public java.util.List<java.lang.reflect.Method> getVirtualMethods()
public void setJaccContextId(java.lang.String jaccContextId)
public org.jboss.ejb3.vfs.spi.VirtualFile getRootFile()
getRootFile in interface InjectionContainerpublic java.util.List<java.lang.Class<?>> getBusinessAndComponentInterfaces()
public java.lang.String getDeploymentQualifiedName()
public java.lang.String getDeploymentPropertyListString()
getEjbName(). The "ear=foo.ear" portion is ommitted
if the bean is not packaged in an ear.
public DeploymentUnit getDeploymentUnit()
public Ejb3Deployment getDeployment()
public DependencyPolicy getDependencyPolicy()
getDependencyPolicy in interface ContainergetDependencyPolicy in interface InjectionContainerpublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
public boolean isBusinessMethod(java.lang.reflect.Method businessMethod)
businessMethod - the method in question
public void processMetadata()
processMetadata in interface ContainerdependencyPolicy - protected java.util.Collection<InjectionHandler<org.jboss.metadata.javaee.spec.Environment>> getInjectionHandlers()
protected void checkForDuplicateLocalAndRemoteInterfaces()
throws javax.ejb.EJBException
javax.ejb.EJBException - If the bean does implements any one interface as both @Local and @Remotepublic org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData getXml()
public org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData getAssemblyDescriptor()
@Deprecated public void setAssemblyDescriptor(org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData assembly)
protected abstract java.util.List<java.lang.Class<?>> resolveBusinessInterfaces()
public InterceptorInfoRepository getInterceptorRepository()
public java.util.Map<java.lang.String,EncInjector> getEncInjectors()
getEncInjectors in interface InjectionContainerpublic org.jboss.jca.spi.ComponentStack getCachedConnectionManager()
public java.lang.ClassLoader getClassloader()
getClassloader in interface InjectionContainerpublic javax.naming.InitialContext getInitialContext()
getInitialContext in interface Containerpublic java.util.Map<java.lang.String,java.util.Map<java.lang.reflect.AccessibleObject,Injector>> getEncInjections()
getEncInjections in interface InjectionContainerpublic javax.naming.Context getEnc()
getEnc in interface ContainergetEnc in interface InjectionContainerpublic java.util.Hashtable getInitialContextProperties()
getInitialContextProperties in interface Containerpublic javax.management.ObjectName getObjectName()
getObjectName in interface Containerpublic java.lang.String getEjbName()
getEjbName in interface Containerpublic java.lang.String getBeanClassName()
public java.lang.Class<?> getBeanClass()
getBeanClass in interface Containerpublic Pool getPool()
getPool in interface Containerpublic java.lang.String getPartitionName()
EJBContainer.start()
is completed.
null if the container is not clusteredprotected java.lang.Object construct()
beanInstantiator
protected void reinitialize()
public void create()
throws java.lang.Exception
create in interface Containerjava.lang.Exception
public void start()
throws java.lang.Exception
start in interface Containerjava.lang.Exception
protected void lockedStart()
throws java.lang.Exception
java.lang.Exceptionprotected void afterStart()
start()
public void stop()
throws java.lang.Exception
stop in interface Containerjava.lang.Exception
protected void lockedStop()
throws java.lang.Exception
java.lang.Exception
public void destroy()
throws java.lang.Exception
destroy in interface Containerjava.lang.Exceptionpublic <T> T getSecurityManager(java.lang.Class<T> type)
Container
getSecurityManager in interface Containertype - the type to cast to
protected java.lang.reflect.Method getTimeoutCallback(org.jboss.metadata.ejb.spec.NamedMethodMetaData timeoutMethodMetaData,
java.lang.Class<?> beanClass)
protected void initializePool()
throws java.lang.Exception
java.lang.Exceptionpublic void injectBeanContext(BeanContext<?> beanContext)
injectBeanContext in interface Container
protected void invokeCallback(BeanContext<?> beanContext,
java.lang.Class<? extends java.lang.annotation.Annotation> callbackAnnotationClass)
beanContext - callbackAnnotationClass - on of PostConstruct, PreDestroy, PostActivate or PrePassivatepublic void invokePostConstruct(BeanContext<?> beanContext)
@Deprecated
public void invokePostConstruct(BeanContext beanContext,
java.lang.Object[] params)
invokePostConstruct in interface Containerpublic void invokePreDestroy(BeanContext beanContext)
invokePreDestroy in interface Containerpublic void invokePostActivate(BeanContext beanContext)
invokePostActivate in interface Containerpublic void invokePrePassivate(BeanContext beanContext)
invokePrePassivate in interface Container
@Deprecated
protected void resolveInjectors()
throws java.lang.Exception
EJBContainer is no longer responsible for setting up
ENC. Instead, SwitchBoard http://community.jboss.org/wiki/Switchboard
will be setting it up.
java.lang.Exceptionprotected java.lang.Class[] getHandledCallbacks()
protected void findPartitionName()
public <T> T getBusinessObject(BeanContext<?> beanContext,
java.lang.Class<T> businessInterface)
throws java.lang.IllegalStateException
java.lang.IllegalStateException
public java.lang.Object getInvokedBusinessInterface(BeanContext beanContext)
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected java.lang.Object getInvokedInterface(java.lang.reflect.Method method)
public java.lang.String resolveEJB(java.lang.String link,
java.lang.Class<?> beanInterface,
java.lang.String mappedName)
resolveEJB in interface EJBInjectionContainer
public Container resolveEjbContainer(java.lang.String link,
java.lang.Class businessIntf)
resolveEjbContainer in interface InjectionContainer
public Container resolveEjbContainer(java.lang.Class businessIntf)
throws javax.naming.NameNotFoundException
resolveEjbContainer in interface InjectionContainerjavax.naming.NameNotFoundExceptionpublic java.lang.String resolveMessageDestination(java.lang.String link)
InjectionContainer
resolveMessageDestination in interface InjectionContainerlink - the message destination name
public java.lang.String resolvePersistenceUnitSupplier(java.lang.String unitName)
ExtendedInjectionContainer
resolvePersistenceUnitSupplier in interface ExtendedInjectionContainerunitName - the name of the persistence unit
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
java.lang.Class<?> clazz)
InjectionContainer
getAnnotation in interface InjectionContainer
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
java.lang.Class<?> clazz,
java.lang.reflect.Method method)
InjectionContainer
getAnnotation in interface InjectionContainer
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
java.lang.reflect.Method method)
getAnnotation in interface InjectionContainer
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
java.lang.Class<?> clazz,
java.lang.reflect.Field field)
InjectionContainer
getAnnotation in interface InjectionContainer
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
java.lang.reflect.Field field)
getAnnotation in interface InjectionContainerpublic java.lang.Object resolveAnnotation(java.lang.Class annotationType)
public java.lang.Object resolveAnnotation(java.lang.reflect.Field field,
java.lang.Class annotationType)
public java.lang.Object resolveAnnotation(java.lang.reflect.Method method,
java.lang.Class annotationType)
public java.lang.Object resolveAnnotation(java.lang.reflect.Method m,
java.lang.Class[] annotationChoices)
public java.lang.String getIdentifier()
InjectionContainer
getIdentifier in interface InjectionContainerpublic java.lang.String getDeploymentDescriptorType()
InjectionContainer
getDeploymentDescriptorType in interface InjectionContainer
public java.lang.String getEjbJndiName(java.lang.Class businessInterface)
throws javax.naming.NameNotFoundException
getEjbJndiName in interface InjectionContainerjavax.naming.NameNotFoundException
public java.lang.String getEjbJndiName(java.lang.String link,
java.lang.Class businessInterface)
getEjbJndiName in interface InjectionContainerpublic InvocationStatistics getInvokeStats()
getInvokeStats in interface Container@Deprecated protected org.jboss.aop.MethodInfo getMethodInfo(java.lang.reflect.Method method)
public boolean isClustered()
isClustered in interface Containerpublic JavaEEModule getModule()
JavaEEComponent
getModule in interface JavaEEComponentpublic void setEjbEncFactory(EjbEncFactory encFactory)
public abstract boolean hasJNDIBinding(java.lang.String jndiName)
hasJNDIBinding in interface InjectionContainerpublic void instantiated()
public void setCachedConnectionManager(org.jboss.jca.spi.ComponentStack ccm)
public void setDirectContainer(org.jboss.ejb3.interceptors.direct.DirectContainer<EJBContainer> container)
setDirectContainer in interface org.jboss.ejb3.interceptors.direct.IndirectContainer<EJBContainer,org.jboss.ejb3.interceptors.direct.DirectContainer<EJBContainer>>protected java.lang.reflect.Method getNonBridgeMethod(java.lang.reflect.Method bridgeMethod)
public java.util.concurrent.locks.Lock getInvocationLock()
public void setTransactionManager(javax.transaction.TransactionManager tm)
public void setInjectionManager(org.jboss.injection.manager.spi.InjectionManager injectionManager)
public org.jboss.ejb3.metadata.annotation.AnnotationRepositoryToMetaData getMetaDataBasedAnnotationRepository()
AnnotationRepositoryToMetaData corresponding to this EJBContainer.
The returned AnnotationRepositoryToMetaData is an implementation of AnnotationRepository
and is capable of resolving annotations from bean metadata through the use of MetaDataBridges
protected void initMetaDataBasedAnnotationRepository()
AnnotationRepositoryToMetaData,
by setting up the appropriate metadata bridges.
Individual containers can then override this method to add more metadata bridges to the metadata based annotation repository.
Sets up metadata bridges for
public java.lang.String toString()
toString in class java.lang.Object
public javax.ejb.EJBHome getEJBHome()
throws java.lang.IllegalStateException
getEJBHome in interface org.jboss.ejb3.context.spi.BeanManagerjava.lang.IllegalStateException
public javax.ejb.EJBLocalHome getEJBLocalHome()
throws java.lang.IllegalStateException
getEJBLocalHome in interface org.jboss.ejb3.context.spi.BeanManagerjava.lang.IllegalStateException
public boolean getRollbackOnly()
throws java.lang.IllegalStateException
getRollbackOnly in interface org.jboss.ejb3.context.spi.BeanManagerjava.lang.IllegalStateException
public javax.transaction.UserTransaction getUserTransaction()
throws java.lang.IllegalStateException
getUserTransaction in interface org.jboss.ejb3.context.spi.BeanManagerjava.lang.IllegalStateException
public boolean isCallerInRole(java.security.Principal callerPrincipal,
java.lang.String roleName)
throws java.lang.IllegalStateException
isCallerInRole in interface org.jboss.ejb3.context.spi.BeanManagerjava.lang.IllegalStateException
public java.lang.Object lookup(java.lang.String name)
throws java.lang.IllegalArgumentException
lookup in interface org.jboss.ejb3.context.spi.BeanManagerjava.lang.IllegalArgumentException
public void setRollbackOnly()
throws java.lang.IllegalStateException
setRollbackOnly in interface org.jboss.ejb3.context.spi.BeanManagerjava.lang.IllegalStateException
protected org.jboss.aop.advice.Interceptor[] getInterceptors(org.jboss.aop.joinpoint.Joinpoint joinPoint,
java.lang.String interceptorStackName)
joinPoint - interceptorStackName -
protected org.jboss.ejb3.instantiator.spi.BeanInstantiator getBeanInstantiator()
public void setBeanInstantiator(org.jboss.ejb3.instantiator.spi.BeanInstantiator beanInstantiator)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||