Hi!
While figuring out yet another timing glitch with AnnotationManager and
NoticationManager I thought about introducing a LifecycleAware Interface in our
SPI.
public interface LifecycleAware {
enum LifecyclePhase {
NEW, // first status when a Service got ct-ed
INITIALIZED, // WebBeansContext initialized
BOOTED, // After firing AfterDeploymentValidation
SHUTTING_DOWN // before firing BeforeShutdown
}
void enterPhase(LifecyclePhase phase);
}
In WebBeansContext we iterate over all Services and call enterPhase on all Svc
which implement LifecycleAware.
wdyt?
LieGrue,
strub