@Service(name="ExampleSbb", vendor="javax.slee", version="1.0", rootSbb=SimpleExampleAnnotatedSbb.class) @Sbb(name="ExampleSbb", vendor="javax.slee", version="1.0") public abstract class SimpleExampleAnnotatedSbb extends Object implements SbbExt
Service annotation too.
Extends SbbExt instead of implementing Sbb, besides access to
SbbContextExt and ConfigProperties, not used in the example,
there is no need to define sbb lifecycle methods not used.
Regarding field injection:
- "default" tracer and SbbContextExt injected before setSbbContext()
- by applying CMPField annotation to field, value is
injected before sbbLoad(), and persisted after sbbStore(), in case applied to
method it identifies one of the CMP Field accessors.
A few more notes about event handler method annotations:
- initialEventSelect is { InitialEventSelect.ActivityContext } by default
- initialEvent is false by default| Constructor and Description |
|---|
SimpleExampleAnnotatedSbb() |
| Modifier and Type | Method and Description |
|---|---|
void |
onServiceStartedEvent(javax.slee.serviceactivity.ServiceStartedEvent event,
javax.slee.ActivityContextInterface aci) |
void |
onTimerEvent(javax.slee.facilities.TimerEvent event,
javax.slee.ActivityContextInterface aci) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsbbConfigurationUpdate, sbbConfigure, sbbUnconfigure, sbbVerifyConfiguration@ServiceStartedEventHandler public void onServiceStartedEvent(javax.slee.serviceactivity.ServiceStartedEvent event, javax.slee.ActivityContextInterface aci)
@TimerEventHandler public void onTimerEvent(javax.slee.facilities.TimerEvent event, javax.slee.ActivityContextInterface aci)
Copyright © 2016. All Rights Reserved.