Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mobicents.slee.runtime
Class ActivityContextInterfaceImpl  view ActivityContextInterfaceImpl download ActivityContextInterfaceImpl.java

java.lang.Object
  extended byorg.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. )


Field Summary
private  java.lang.String acId
           
private  ActivityContextFactory acif
           
private  java.lang.Object activity
           
private  ActivityContext localAc
           
private static org.jboss.logging.Logger logger
           
private  org.mobicents.slee.container.SleeContainer serviceContainer
           
 
Constructor Summary
ActivityContextInterfaceImpl(org.mobicents.slee.container.SleeContainer serviceContainer, java.lang.String activityContextId)
          This is allocated by the Slee to wrap an incoming event (activity).
 
Method Summary
private  void assertValidSbbEntity(org.mobicents.slee.runtime.transaction.SleeTransactionManager txMgr, java.lang.String sbbeId)
          The sbbeId argument must represent a valid SBB entity when this method is invoked.
 void attach(SbbLocalObject sbbLocalObject)
           
 void detach(SbbLocalObject sbbLocalObject)
           
 java.lang.Object getActivity()
           
 ActivityContext getActivityContext()
           
 boolean isEnding()
           
 ActivityContext retrieveActivityContext()
           
 java.lang.String retrieveActivityContextID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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).

Method Detail

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