Methods Summary |
---|
public 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).
// ignore
|
public void | addContains(StatefulBeanContext ctx)
getDelegate().addContains(ctx);
|
public void | addExtendedPersistenceContext(java.lang.String id, javax.persistence.EntityManager pc)
getDelegate().addExtendedPersistenceContext(id, pc);
|
public void | extractBeanAndInterceptors()
getDelegate().extractBeanAndInterceptors();
|
public boolean | getCanPassivate()
if (delegate == null)
{
// If we haven't deserialized our delegate, we're not in use
// on this node
return true;
}
// Just check if *we* are in use; whether any children are
// in use doesn't matter, since passivating this proxy
// doesn't affect children
return (isInUse() == false);
|
public boolean | getCanRemoveFromCache()
return getDelegate().getCanRemoveFromCache();
|
public StatefulBeanContext | getContainedIn()
return getDelegate().getContainedIn();
|
public org.jboss.ejb3.Container | getContainer()
return getDelegate().getContainer();
|
public java.util.List | getContains()
return getDelegate().getContains();
|
protected StatefulBeanContext | getDelegate()
if (delegate == null)
{
for (StatefulBeanContext ctx : parentRef.getBeanContext()
.getContains())
{
Object matchingOid = ctx.getId();
if (oid.equals(matchingOid)
&& ctx.getContainer().getObjectName().getCanonicalName()
.equals(containerId))
{
delegate = ctx;
break;
}
}
if (delegate == null)
throw new RuntimeException("Failed to read delegate");
// If we just read our delegate, it's possible there's been a
// failover and a remote node still has a ref to a stale delegate.
// So, we should be replicated to invalidate the remote node.
this.markedForReplication = true;
}
return delegate;
|
public javax.ejb.EJBContext | getEJBContext()
return getDelegate().getEJBContext();
|
public javax.persistence.EntityManager | getExtendedPersistenceContext(java.lang.String id)
return getDelegate().getExtendedPersistenceContext(id);
|
public java.util.Map | getExtendedPersistenceContexts()
return getDelegate().getExtendedPersistenceContexts();
|
public java.lang.Object | getId()
return getDelegate().getId();
|
public java.lang.Object | getInstance()
return getDelegate().getInstance();
|
public java.lang.Object[] | getInterceptorInstances(org.jboss.ejb3.interceptor.InterceptorInfo[] interceptorInfos)
return getDelegate().getInterceptorInstances(interceptorInfos);
|
public java.util.concurrent.locks.ReentrantLock | getLock()
return getDelegate().getLock();
|
public org.jboss.aop.metadata.SimpleMetaData | getMetaData()
return getDelegate().getMetaData();
|
public boolean | getReplicationIsPassivation()
return getDelegate().getReplicationIsPassivation();
|
public StatefulBeanContext | getUltimateContainedIn()
return getDelegate().getUltimateContainedIn();
|
public void | initialiseInterceptorInstances()
getDelegate().initialiseInterceptorInstances();
|
public boolean | isDiscarded()
return getDelegate().isDiscarded();
|
public boolean | isInInvocation()
return getDelegate().isInInvocation();
|
public boolean | isInUse()
// Don't call delegate
return super.isInUse();
|
public boolean | isRemoved()
return getDelegate().isRemoved();
|
public boolean | isTxSynchronized()
return getDelegate().isTxSynchronized();
|
public 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).
// ignore
|
public void | popContainedIn()
getDelegate().popContainedIn();
|
public 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).
|
public 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).
// ignore
|
public 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).
|
public 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).
// ignore
|
public StatefulBeanContext | pushContainedIn()
return getDelegate().pushContainedIn();
|
public void | readExternal(java.io.ObjectInput in)
oid = in.readObject();
containerId = in.readUTF();
parentRef = (StatefulBeanContextReference) in.readObject();
|
public void | remove()
getDelegate().remove();
|
public void | removeContains(StatefulBeanContext ctx)
getDelegate().removeContains(ctx);
|
public void | removeExtendedPersistenceContext(java.lang.String id)
getDelegate().removeExtendedPersistenceContext(id);
|
public boolean | scanForExtendedPersistenceContext(java.lang.String id, StatefulBeanContext ignore)
return getDelegate().scanForExtendedPersistenceContext(id, ignore);
|
public void | setContainer(org.jboss.ejb3.Container container)
getDelegate().setContainer(container);
|
public void | setDiscarded(boolean discarded)
getDelegate().setDiscarded(discarded);
|
public void | setId(java.lang.Object id)
this.oid = id;
getDelegate().setId(id);
|
public void | setInInvocation(boolean inInvocation)
getDelegate().setInInvocation(inInvocation);
|
public void | setInUse(boolean inUse)
super.setInUse(inUse);
// delegate needs to know this for getCanPassivate()
getDelegate().setInUse(inUse);
if (!inUse)
{
// drop ref to delegate, as the delegate can be passivated/activated
// without our knowledge, and if that happens we have a ref to a
// stale delegate.
delegate = null;
}
|
public void | setInstance(java.lang.Object instance)
getDelegate().setInstance(instance);
|
public void | setReplicationIsPassivation(boolean replicationIsPassivation)
getDelegate().setReplicationIsPassivation(replicationIsPassivation);
|
public void | setTxSynchronized(boolean txSynchronized)
getDelegate().setTxSynchronized(txSynchronized);
|
public void | writeExternal(java.io.ObjectOutput out)
out.writeObject(oid);
out.writeUTF(containerId);
out.writeObject(parentRef);
|