if (log.isLoggable(Level.FINEST))
log.finest(this + " lifecycleEvent " + oldValue + " -> " + newValue);
if (newState == Lifecycle.IS_ACTIVE) {
LifecycleNotification notif;
notif = new LifecycleNotification(LifecycleNotification.AFTER_START,
this, _sequence++, timestamp,
toString () + " started");
_broadcaster.sendNotification(notif);
}
if (oldState == Lifecycle.IS_ACTIVE) {
LifecycleNotification notif;
notif = new LifecycleNotification(LifecycleNotification.BEFORE_STOP,
this, _sequence++, timestamp,
toString() + " stopping");
_broadcaster.sendNotification(notif);
}