java.lang.Object
org.mobicents.slee.runtime.ActivityContextInterfaceImpl
- All Implemented Interfaces:
- ActivityContextIDInterface
- public class ActivityContextInterfaceImpl
- extends java.lang.Object
- implements ActivityContextIDInterface
Activity context interface - default implementation. The Sbb deployer has
to imbed an instance of this as a proxy object in each sbb ACI.
This is the SLEE wrapper data structure for Activity Contexts. The Sbb gets to
access this rather than the activity. The reason this exists is because the
activity context can be at a different location than the activity context
interface (does not need to be co-located in the same jvm. )
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serviceContainer
private org.mobicents.slee.container.SleeContainer serviceContainer
acif
private ActivityContextFactory acif
localAc
private ActivityContext localAc
activity
private java.lang.Object activity
acId
private java.lang.String acId
logger
private static org.jboss.logging.Logger logger
ActivityContextInterfaceImpl
public ActivityContextInterfaceImpl(org.mobicents.slee.container.SleeContainer serviceContainer,
java.lang.String activityContextId)
- This is allocated by the Slee to wrap an incoming event (activity).
getActivityContext
public ActivityContext getActivityContext()
getActivity
public java.lang.Object getActivity()
throws TransactionRequiredLocalException,
SLEEException
attach
public void attach(SbbLocalObject sbbLocalObject)
throws java.lang.NullPointerException,
TransactionRequiredLocalException,
TransactionRolledbackLocalException,
SLEEException
assertValidSbbEntity
private void assertValidSbbEntity(org.mobicents.slee.runtime.transaction.SleeTransactionManager txMgr,
java.lang.String sbbeId)
throws TransactionRolledbackLocalException
- The sbbeId argument must represent a valid SBB entity when this method is invoked.
Otherwise, this method marks the current transaction for rollback and throws a javax.
slee.TransactionRolledbackLocalException.
detach
public void detach(SbbLocalObject sbbLocalObject)
throws java.lang.NullPointerException,
TransactionRequiredLocalException,
TransactionRolledbackLocalException,
SLEEException
isEnding
public boolean isEnding()
throws TransactionRequiredLocalException,
SLEEException
retrieveActivityContextID
public java.lang.String retrieveActivityContextID()
- Specified by:
retrieveActivityContextID in interface ActivityContextIDInterface
retrieveActivityContext
public ActivityContext retrieveActivityContext()
- Specified by:
retrieveActivityContext in interface ActivityContextIDInterface