javax.slee.serviceactivity
Interface ServiceActivityContextInterfaceFactory


public interface ServiceActivityContextInterfaceFactory

The Service Activity Context Interface Factory is used by SBBs to obtain an ActivityContextInterface object for a Service activity.

SBB JNDI Location:
java:comp/env/slee/serviceactivity/activitycontextinterfacefactory

See Also:
ServiceActivity, ServiceActivityFactory

Method Summary
 ActivityContextInterface getActivityContextInterface(ServiceActivity activity)
          Get an ActivityContextInterface object for a Service activity.
 

Method Detail

getActivityContextInterface

public ActivityContextInterface getActivityContextInterface(ServiceActivity activity)
                                                     throws java.lang.NullPointerException,
                                                            TransactionRequiredLocalException,
                                                            UnrecognizedActivityException,
                                                            FactoryException
Get an ActivityContextInterface object for a Service activity.

This method is a mandatory transactional method.

Parameters:
activity - the Service activity.
Returns:
an ActivityContextInterface object that encapsulates the Service activity.
Throws:
java.lang.NullPointerException - if activity is null.
TransactionRequiredLocalException - if this method is invoked without a valid transaction context.
UnrecognizedActivityException - if activity is not a valid Service activity created by the SLEE.
FactoryException - if the ActivityContextInterface object could not be created due to a system-level failure.