|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb3.BaseContext<T>
org.jboss.ejb3.session.SessionBeanContext<T>
org.jboss.ejb3.session.SessionSpecBeanContext<StatefulContainer>
org.jboss.ejb3.stateful.StatefulBeanContext
org.jboss.ejb3.stateful.ProxiedStatefulBeanContext
public class ProxiedStatefulBeanContext
Proxy to a NestedStatefulBeanContext that can be independently passivated, activated and replicated without disturbing the object it is proxying.
Field Summary |
---|
Fields inherited from class org.jboss.ejb3.stateful.StatefulBeanContext |
---|
beanMO, containedIn, containerClusterUid, containerGuid, contains, currentBean, discarded, id, inInvocation, isClustered, lastUsed, lock, markedForPassivation, markedForReplication, passivated, persistenceContexts, propagatedContainedIn, removed, replicationIsPassivation, txSynchronized |
Fields inherited from class org.jboss.ejb3.session.SessionBeanContext |
---|
ejbContext |
Fields inherited from class org.jboss.ejb3.BaseContext |
---|
bean, container, interceptorInstances, log, metadata, rm |
Constructor Summary | |
---|---|
ProxiedStatefulBeanContext()
Only for externalization. |
|
ProxiedStatefulBeanContext(StatefulBeanContext delegate)
|
Method Summary | |
---|---|
void |
activateAfterReplication()
Ignores the call, as activation of this proxy context does not affect the underlying bean (which is activated along with its parent context). |
void |
addContains(StatefulBeanContext ctx)
|
void |
addExtendedPersistenceContext(String id,
javax.persistence.EntityManager pc)
|
boolean |
equals(Object obj)
|
void |
extractBeanAndInterceptors()
|
boolean |
getCanPassivate()
Checks whether this context or any of its children are in use. |
boolean |
getCanRemoveFromCache()
|
StatefulBeanContext |
getContainedIn()
|
StatefulContainer |
getContainer()
|
List<StatefulBeanContext> |
getContains()
|
protected StatefulBeanContext |
getDelegate()
|
javax.ejb.EJBContext |
getEJBContext()
|
javax.persistence.EntityManager |
getExtendedPersistenceContext(String id)
|
Map<String,javax.persistence.EntityManager> |
getExtendedPersistenceContexts()
|
Object |
getId()
|
Object |
getInstance()
Returns the enterprise bean, never returns null. |
Object |
getInterceptor(Class<?> interceptorClass)
|
Object[] |
getInterceptorInstances(InterceptorInfo[] interceptorInfos)
|
Object |
getInvokedMethodKey()
|
ReentrantLock |
getLock()
|
org.jboss.aop.metadata.SimpleMetaData |
getMetaData()
|
boolean |
getReplicationIsPassivation()
|
StatefulBeanContext |
getUltimateContainedIn()
|
int |
hashCode()
|
void |
initialiseInterceptorInstances()
|
boolean |
isDiscarded()
|
boolean |
isInInvocation()
|
boolean |
isInUse()
|
boolean |
isRemoved()
|
boolean |
isTxSynchronized()
|
void |
passivateAfterReplication()
Ignores the call, as passivation of this proxy context does not affect the underlying bean (which is passivated along with its parent context). |
void |
popContainedIn()
|
void |
postActivate()
Ignores the call, as activation of this proxy context does not affect the underlying bean (which is activated along with its parent context). |
void |
postReplicate()
Ignores the call, as replication of this proxy context does not affect the underlying bean (which is replicated along with its parent context). |
void |
prePassivate()
Ignores the call, as passivation of this proxy context does not affect the underlying bean (which is passivated along with its parent context). |
void |
preReplicate()
Ignores the call, as replication of this proxy context does not affect the underlying bean (which is replicated along with its parent context). |
StatefulBeanContext |
pushContainedIn()
|
void |
readExternal(ObjectInput in)
|
void |
remove()
|
void |
removeContains(StatefulBeanContext ctx)
|
void |
removeExtendedPersistenceContext(String id)
|
boolean |
scanForExtendedPersistenceContext(String id,
StatefulBeanContext ignore)
|
void |
setDiscarded(boolean discarded)
|
void |
setInInvocation(boolean inInvocation)
|
void |
setInUse(boolean inUse)
|
void |
setReplicationIsPassivation(boolean replicationIsPassivation)
|
void |
setTxSynchronized(boolean txSynchronized)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.jboss.ejb3.stateful.StatefulBeanContext |
---|
isModified |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxiedStatefulBeanContext(StatefulBeanContext delegate)
public ProxiedStatefulBeanContext()
Method Detail |
---|
protected StatefulBeanContext getDelegate()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class StatefulBeanContext
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class StatefulBeanContext
IOException
ClassNotFoundException
public List<StatefulBeanContext> getContains()
getContains
in class StatefulBeanContext
public javax.persistence.EntityManager getExtendedPersistenceContext(String id)
getExtendedPersistenceContext
in class StatefulBeanContext
public void addExtendedPersistenceContext(String id, javax.persistence.EntityManager pc)
addExtendedPersistenceContext
in class StatefulBeanContext
public Map<String,javax.persistence.EntityManager> getExtendedPersistenceContexts()
getExtendedPersistenceContexts
in class StatefulBeanContext
public void removeExtendedPersistenceContext(String id)
removeExtendedPersistenceContext
in class StatefulBeanContext
public boolean scanForExtendedPersistenceContext(String id, StatefulBeanContext ignore)
scanForExtendedPersistenceContext
in class StatefulBeanContext
public StatefulBeanContext getContainedIn()
getContainedIn
in class StatefulBeanContext
public void addContains(StatefulBeanContext ctx)
addContains
in class StatefulBeanContext
public void removeContains(StatefulBeanContext ctx)
removeContains
in class StatefulBeanContext
public StatefulBeanContext pushContainedIn()
pushContainedIn
in class StatefulBeanContext
public void popContainedIn()
popContainedIn
in class StatefulBeanContext
public StatefulBeanContext getUltimateContainedIn()
getUltimateContainedIn
in class StatefulBeanContext
public boolean isInUse()
isInUse
in class StatefulBeanContext
public void setInUse(boolean inUse)
setInUse
in class StatefulBeanContext
public boolean isDiscarded()
isDiscarded
in class StatefulBeanContext
public void setDiscarded(boolean discarded)
setDiscarded
in class StatefulBeanContext
public boolean isRemoved()
isRemoved
in class StatefulBeanContext
public ReentrantLock getLock()
getLock
in class StatefulBeanContext
public boolean isInInvocation()
isInInvocation
in class StatefulBeanContext
public void setInInvocation(boolean inInvocation)
setInInvocation
in class StatefulBeanContext
public Object getId()
getId
in interface org.jboss.ejb3.cache.Identifiable
getId
in class StatefulBeanContext
public boolean isTxSynchronized()
isTxSynchronized
in class StatefulBeanContext
public void setTxSynchronized(boolean txSynchronized)
setTxSynchronized
in class StatefulBeanContext
public void remove()
remove
in class StatefulBeanContext
public StatefulContainer getContainer()
getContainer
in class StatefulBeanContext
public Object getInstance()
BaseContext
getInstance
in interface org.jboss.ejb3.interceptors.container.BeanContext<Object>
getInstance
in class StatefulBeanContext
public org.jboss.aop.metadata.SimpleMetaData getMetaData()
getMetaData
in interface org.jboss.ejb3.tx.container.StatefulBeanContext<Object>
getMetaData
in class StatefulBeanContext
public Object[] getInterceptorInstances(InterceptorInfo[] interceptorInfos)
getInterceptorInstances
in class StatefulBeanContext
public void extractBeanAndInterceptors()
extractBeanAndInterceptors
in class StatefulBeanContext
public javax.ejb.EJBContext getEJBContext()
getEJBContext
in class StatefulBeanContext
public void prePassivate()
prePassivate
in class StatefulBeanContext
public void postActivate()
postActivate
in class StatefulBeanContext
public void passivateAfterReplication()
passivateAfterReplication
in class StatefulBeanContext
public void activateAfterReplication()
activateAfterReplication
in class StatefulBeanContext
public boolean getCanPassivate()
StatefulBeanContext
getCanPassivate
in class StatefulBeanContext
public boolean getCanRemoveFromCache()
getCanRemoveFromCache
in class StatefulBeanContext
public boolean getReplicationIsPassivation()
getReplicationIsPassivation
in class StatefulBeanContext
public void setReplicationIsPassivation(boolean replicationIsPassivation)
setReplicationIsPassivation
in class StatefulBeanContext
public void preReplicate()
preReplicate
in class StatefulBeanContext
public void postReplicate()
postReplicate
in class StatefulBeanContext
public Object getInvokedMethodKey()
getInvokedMethodKey
in class StatefulBeanContext
public Object getInterceptor(Class<?> interceptorClass) throws IllegalArgumentException
getInterceptor
in interface org.jboss.ejb3.interceptors.container.BeanContext<Object>
getInterceptor
in class BaseContext<StatefulContainer>
IllegalArgumentException
public void initialiseInterceptorInstances()
initialiseInterceptorInstances
in class BaseContext<StatefulContainer>
public boolean equals(Object obj)
equals
in class StatefulBeanContext
public int hashCode()
hashCode
in class StatefulBeanContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |