public class GlobalObserverNotifierService extends Object implements BootstrapService
ObserverNotifier
that uses the global TypeSafeObserverResolver
which has access to every enabled
observer method in the deployment. The underlying ObserverNotifier
should be used every time an event is fired, except for
special cases such as ServletContextEvent
, where the event is only fired to BDAs accessible from the web archive.Constructor and Description |
---|
GlobalObserverNotifierService(ServiceRegistry services) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
|
void |
cleanupAfterBoot()
Called by Weld once it finishes initialization and before it starts serving requests.
|
ObserverNotifier |
getGlobalLenientObserverNotifier() |
ObserverNotifier |
getGlobalStrictObserverNotifier() |
void |
registerBeanManager(BeanManagerImpl manager) |
public GlobalObserverNotifierService(ServiceRegistry services)
public void registerBeanManager(BeanManagerImpl manager)
public ObserverNotifier getGlobalLenientObserverNotifier()
public ObserverNotifier getGlobalStrictObserverNotifier()
public void cleanupAfterBoot()
BootstrapService
cleanupAfterBoot
in interface BootstrapService
Copyright © 2013 Seam Framework. All Rights Reserved.