Package org.jboss.weld.event
Class GlobalObserverNotifierService
- java.lang.Object
-
- org.jboss.weld.event.GlobalObserverNotifierService
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.BootstrapService
,org.jboss.weld.bootstrap.api.Service
public class GlobalObserverNotifierService extends Object implements org.jboss.weld.bootstrap.api.BootstrapService
Hosts aObserverNotifier
that uses the globalTypeSafeObserverResolver
which has access to every enabled observer method in the deployment. The underlyingObserverNotifier
should be used every time an event is fired, except for special cases such asServletContextEvent
, where the event is only fired to BDAs accessible from the web archive.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description GlobalObserverNotifierService(org.jboss.weld.bootstrap.api.ServiceRegistry services, String contextId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
cleanupAfterBoot()
Iterable<ObserverMethod<?>>
getAllObserverMethods()
ObserverNotifier
getGlobalLenientObserverNotifier()
ObserverNotifier
getGlobalStrictObserverNotifier()
void
registerBeanManager(BeanManagerImpl manager)
-
-
-
Constructor Detail
-
GlobalObserverNotifierService
public GlobalObserverNotifierService(org.jboss.weld.bootstrap.api.ServiceRegistry services, String contextId)
-
-
Method Detail
-
registerBeanManager
public void registerBeanManager(BeanManagerImpl manager)
-
getGlobalLenientObserverNotifier
public ObserverNotifier getGlobalLenientObserverNotifier()
-
getGlobalStrictObserverNotifier
public ObserverNotifier getGlobalStrictObserverNotifier()
-
getAllObserverMethods
public Iterable<ObserverMethod<?>> getAllObserverMethods()
-
cleanupAfterBoot
public void cleanupAfterBoot()
- Specified by:
cleanupAfterBoot
in interfaceorg.jboss.weld.bootstrap.api.BootstrapService
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceorg.jboss.weld.bootstrap.api.Service
-
-