org.jboss.ejb3
Class BaseContext<T extends Container>

java.lang.Object
  extended by org.jboss.ejb3.BaseContext<T>
All Implemented Interfaces:
org.jboss.ejb3.interceptors.container.BeanContext<java.lang.Object>
Direct Known Subclasses:
MDBContext, SessionBeanContext

public abstract class BaseContext<T extends Container>
extends java.lang.Object
implements BeanContext<T>

Comment


Field Summary
protected  java.lang.Object bean
           
protected  T container
           
protected  java.util.Map<java.lang.Class<?>,java.lang.Object> interceptorInstances
           
protected static org.jboss.logging.Logger log
           
protected  org.jboss.aop.metadata.SimpleMetaData metadata
           
protected  org.jboss.security.RealmMapping rm
           
 
Constructor Summary
protected BaseContext()
          Deprecated.  
protected BaseContext(T container)
          Use with extreme caution, must not break getInstance post condition.
protected BaseContext(T container, java.lang.Object bean)
           
 
Method Summary
 T getContainer()
           
 java.lang.Object getId()
           
 java.lang.Object getInstance()
          Returns the enterprise bean, never returns null.
 java.lang.Object getInterceptor(java.lang.Class<?> interceptorClass)
           
 java.lang.Object[] getInterceptorInstances(InterceptorInfo[] interceptorInfos)
          Deprecated. 
 java.lang.Object getInvokedMethodKey()
           
 org.jboss.aop.metadata.SimpleMetaData getMetaData()
           
 void initialiseInterceptorInstances()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.ejb3.BeanContext
createInjectionInvocation, createLifecycleInvocation, getEJBContext, remove
 

Field Detail

log

protected static org.jboss.logging.Logger log

container

protected T extends Container container

bean

protected java.lang.Object bean

rm

protected org.jboss.security.RealmMapping rm

metadata

protected org.jboss.aop.metadata.SimpleMetaData metadata

interceptorInstances

protected java.util.Map<java.lang.Class<?>,java.lang.Object> interceptorInstances
Constructor Detail

BaseContext

protected BaseContext(T container)
Use with extreme caution, must not break getInstance post condition.

Parameters:
container -

BaseContext

protected BaseContext(T container,
                      java.lang.Object bean)

BaseContext

protected BaseContext()
Deprecated. 

Only for externalization use by subclass StatefulBeanContext; do not use elsewhere.

Method Detail

getId

public java.lang.Object getId()

getInstance

public java.lang.Object getInstance()
Returns the enterprise bean, never returns null.

Specified by:
getInstance in interface org.jboss.ejb3.interceptors.container.BeanContext<java.lang.Object>

getContainer

public T getContainer()

getMetaData

public org.jboss.aop.metadata.SimpleMetaData getMetaData()

initialiseInterceptorInstances

public void initialiseInterceptorInstances()

getInterceptorInstances

@Deprecated
public java.lang.Object[] getInterceptorInstances(InterceptorInfo[] interceptorInfos)
Deprecated. 


getInvokedMethodKey

public java.lang.Object getInvokedMethodKey()

getInterceptor

public java.lang.Object getInterceptor(java.lang.Class<?> interceptorClass)
                                throws java.lang.IllegalArgumentException
Specified by:
getInterceptor in interface org.jboss.ejb3.interceptors.container.BeanContext<java.lang.Object>
Throws:
java.lang.IllegalArgumentException