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 a
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.- Author:
- Jozef Hartinger
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalObserverNotifierService(org.jboss.weld.bootstrap.api.ServiceRegistry services, String contextId) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()voidIterable<jakarta.enterprise.inject.spi.ObserverMethod<?>>voidregisterBeanManager(BeanManagerImpl manager)
-
Constructor Details
-
GlobalObserverNotifierService
public GlobalObserverNotifierService(org.jboss.weld.bootstrap.api.ServiceRegistry services, String contextId)
-
-
Method Details
-
registerBeanManager
-
getGlobalLenientObserverNotifier
-
getGlobalStrictObserverNotifier
-
getAllObserverMethods
-
cleanupAfterBoot
public void cleanupAfterBoot()- Specified by:
cleanupAfterBootin interfaceorg.jboss.weld.bootstrap.api.BootstrapService
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-