public class GlobalObserverNotifierService extends Object implements org.jboss.weld.bootstrap.api.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(org.jboss.weld.bootstrap.api.ServiceRegistry services,
String contextId) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
cleanupAfterBoot() |
Iterable<javax.enterprise.inject.spi.ObserverMethod<?>> |
getAllObserverMethods() |
ObserverNotifier |
getGlobalLenientObserverNotifier() |
ObserverNotifier |
getGlobalStrictObserverNotifier() |
void |
registerBeanManager(BeanManagerImpl manager) |
public GlobalObserverNotifierService(org.jboss.weld.bootstrap.api.ServiceRegistry services, String contextId)
public void registerBeanManager(BeanManagerImpl manager)
public ObserverNotifier getGlobalLenientObserverNotifier()
public ObserverNotifier getGlobalStrictObserverNotifier()
public Iterable<javax.enterprise.inject.spi.ObserverMethod<?>> getAllObserverMethods()
public void cleanupAfterBoot()
cleanupAfterBoot
in interface org.jboss.weld.bootstrap.api.BootstrapService
public void cleanup()
cleanup
in interface org.jboss.weld.bootstrap.api.Service
Copyright © 2016. All rights reserved.