public class GlobalObserverNotifierService extends java.lang.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,
java.lang.String contextId) |
| 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.
|
java.lang.Iterable<ObserverMethod<?>> |
getAllObserverMethods() |
ObserverNotifier |
getGlobalLenientObserverNotifier() |
ObserverNotifier |
getGlobalStrictObserverNotifier() |
void |
registerBeanManager(BeanManagerImpl manager) |
public GlobalObserverNotifierService(ServiceRegistry services, java.lang.String contextId)
public void registerBeanManager(BeanManagerImpl manager)
public ObserverNotifier getGlobalLenientObserverNotifier()
public ObserverNotifier getGlobalStrictObserverNotifier()
public java.lang.Iterable<ObserverMethod<?>> getAllObserverMethods()
public void cleanupAfterBoot()
BootstrapServicecleanupAfterBoot in interface BootstrapServiceCopyright © 2015. All Rights Reserved.