|
|||||||||
| 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(java.lang.String id,
javax.persistence.EntityManager pc)
|
boolean |
equals(java.lang.Object obj)
|
void |
extractBeanAndInterceptors()
|
boolean |
getCanPassivate()
Checks whether this context or any of its children are in use. |
boolean |
getCanRemoveFromCache()
|
StatefulBeanContext |
getContainedIn()
|
StatefulContainer |
getContainer()
|
java.util.List<StatefulBeanContext> |
getContains()
|
protected StatefulBeanContext |
getDelegate()
|
org.jboss.ejb3.context.spi.EJBContext |
getEJBContext()
|
javax.persistence.EntityManager |
getExtendedPersistenceContext(java.lang.String id)
|
java.util.Map<java.lang.String,javax.persistence.EntityManager> |
getExtendedPersistenceContexts()
|
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)
|
java.lang.Object |
getInvokedMethodKey()
|
java.util.concurrent.locks.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(java.io.ObjectInput in)
|
void |
remove()
|
void |
removeContains(StatefulBeanContext ctx)
|
void |
removeExtendedPersistenceContext(java.lang.String id)
|
boolean |
scanForExtendedPersistenceContext(java.lang.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(java.io.ObjectOutput out)
|
| Methods inherited from class org.jboss.ejb3.stateful.StatefulBeanContext |
|---|
discard, getSessionSynchronization, isModified, registerSynchronization |
| Methods inherited from class org.jboss.ejb3.session.SessionSpecBeanContext |
|---|
createInjectionInvocation, createLifecycleInvocation |
| 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(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class StatefulBeanContextjava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class StatefulBeanContextjava.io.IOException
java.lang.ClassNotFoundExceptionpublic java.util.List<StatefulBeanContext> getContains()
getContains in class StatefulBeanContextpublic javax.persistence.EntityManager getExtendedPersistenceContext(java.lang.String id)
getExtendedPersistenceContext in class StatefulBeanContext
public void addExtendedPersistenceContext(java.lang.String id,
javax.persistence.EntityManager pc)
addExtendedPersistenceContext in class StatefulBeanContextpublic java.util.Map<java.lang.String,javax.persistence.EntityManager> getExtendedPersistenceContexts()
getExtendedPersistenceContexts in class StatefulBeanContextpublic void removeExtendedPersistenceContext(java.lang.String id)
removeExtendedPersistenceContext in class StatefulBeanContext
public boolean scanForExtendedPersistenceContext(java.lang.String id,
StatefulBeanContext ignore)
scanForExtendedPersistenceContext in class StatefulBeanContextpublic StatefulBeanContext getContainedIn()
getContainedIn in class StatefulBeanContextpublic void addContains(StatefulBeanContext ctx)
addContains in class StatefulBeanContextpublic void removeContains(StatefulBeanContext ctx)
removeContains in class StatefulBeanContextpublic StatefulBeanContext pushContainedIn()
pushContainedIn in class StatefulBeanContextpublic void popContainedIn()
popContainedIn in class StatefulBeanContextpublic StatefulBeanContext getUltimateContainedIn()
getUltimateContainedIn in class StatefulBeanContextpublic boolean isInUse()
isInUse in class StatefulBeanContextpublic void setInUse(boolean inUse)
setInUse in class StatefulBeanContextpublic boolean isDiscarded()
isDiscarded in class StatefulBeanContextpublic void setDiscarded(boolean discarded)
setDiscarded in class StatefulBeanContextpublic boolean isRemoved()
isRemoved in class StatefulBeanContextpublic java.util.concurrent.locks.ReentrantLock getLock()
getLock in class StatefulBeanContextpublic boolean isInInvocation()
isInInvocation in class StatefulBeanContextpublic void setInInvocation(boolean inInvocation)
setInInvocation in class StatefulBeanContextpublic java.lang.Object getId()
getId in interface org.jboss.ejb3.cache.IdentifiablegetId in class StatefulBeanContextpublic boolean isTxSynchronized()
isTxSynchronized in class StatefulBeanContextpublic void setTxSynchronized(boolean txSynchronized)
setTxSynchronized in class StatefulBeanContextpublic void remove()
remove in class StatefulBeanContextpublic StatefulContainer getContainer()
getContainer in class StatefulBeanContextpublic java.lang.Object getInstance()
BaseContext
getInstance in interface org.jboss.ejb3.interceptors.container.BeanContext<java.lang.Object>getInstance in class StatefulBeanContextpublic org.jboss.aop.metadata.SimpleMetaData getMetaData()
getMetaData in interface org.jboss.ejb3.tx.container.StatefulBeanContext<java.lang.Object>getMetaData in class StatefulBeanContextpublic java.lang.Object[] getInterceptorInstances(InterceptorInfo[] interceptorInfos)
getInterceptorInstances in class StatefulBeanContextpublic void extractBeanAndInterceptors()
extractBeanAndInterceptors in class StatefulBeanContextpublic org.jboss.ejb3.context.spi.EJBContext getEJBContext()
getEJBContext in class StatefulBeanContextpublic void prePassivate()
prePassivate in class StatefulBeanContextpublic void postActivate()
postActivate in class StatefulBeanContextpublic void passivateAfterReplication()
passivateAfterReplication in class StatefulBeanContextpublic void activateAfterReplication()
activateAfterReplication in class StatefulBeanContextpublic boolean getCanPassivate()
StatefulBeanContext
getCanPassivate in class StatefulBeanContextpublic boolean getCanRemoveFromCache()
getCanRemoveFromCache in class StatefulBeanContextpublic boolean getReplicationIsPassivation()
getReplicationIsPassivation in class StatefulBeanContextpublic void setReplicationIsPassivation(boolean replicationIsPassivation)
setReplicationIsPassivation in class StatefulBeanContextpublic void preReplicate()
preReplicate in class StatefulBeanContextpublic void postReplicate()
postReplicate in class StatefulBeanContextpublic java.lang.Object getInvokedMethodKey()
getInvokedMethodKey in class StatefulBeanContext
public java.lang.Object getInterceptor(java.lang.Class<?> interceptorClass)
throws java.lang.IllegalArgumentException
getInterceptor in interface org.jboss.ejb3.interceptors.container.BeanContext<java.lang.Object>getInterceptor in class BaseContext<StatefulContainer>java.lang.IllegalArgumentExceptionpublic void initialiseInterceptorInstances()
initialiseInterceptorInstances in class BaseContext<StatefulContainer>public boolean equals(java.lang.Object obj)
equals in class StatefulBeanContextpublic int hashCode()
hashCode in class StatefulBeanContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||