SessionStateType
- The session state interface that this feature requiresEndpointType
- The endpoint interface that this feature requirespublic abstract class BaseFeature<SessionStateType,EndpointType extends FeatureEndpoint> extends java.lang.Object implements SentinelFeature
Modifier | Constructor and Description |
---|---|
protected |
BaseFeature(EndpointType caller,
Facilities facilities,
SessionStateType sessionState) |
Modifier and Type | Method and Description |
---|---|
void |
abortFeature()
The feature should abandon execution and clear up any resources.
|
void |
dependenciesInjected()
All requested elements have been injected, so the feature may carry out additional initialisation.
|
protected EndpointType |
getCaller() |
protected Facilities |
getFacilities() |
protected SessionStateType |
getSessionState() |
protected com.opencloud.rhino.facilities.ExtendedTracer |
getTracer() |
void |
startFeature(java.lang.Object trigger,
java.lang.Object activity,
javax.slee.ActivityContextInterface aci,
java.util.Map<java.lang.String,ParameterValue> featureParameters)
kick off the feature
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeatureName, startFeature
protected BaseFeature(EndpointType caller, Facilities facilities, SessionStateType sessionState)
public void dependenciesInjected()
dependenciesInjected
in interface SentinelFeature
public void startFeature(java.lang.Object trigger, java.lang.Object activity, javax.slee.ActivityContextInterface aci, java.util.Map<java.lang.String,ParameterValue> featureParameters)
startFeature
in interface SentinelFeature
trigger
- a triggering context. The feature implementation must be able to cast this to a useful type for it to runactivity
- the slee activity object this feature is related to (may be null)aci
- the activity context interface of the slee activity this feature is related tofeatureParameters
- parameters supplied in the run feature statement that caused this feature to be executedpublic void abortFeature()
abortFeature
in interface SentinelFeature
protected final SessionStateType getSessionState()
protected final Facilities getFacilities()
protected final com.opencloud.rhino.facilities.ExtendedTracer getTracer()
protected final EndpointType getCaller()
Copyright © OpenCloud. All Rights Reserved.