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 Details

    • GlobalObserverNotifierService

      public GlobalObserverNotifierService(org.jboss.weld.bootstrap.api.ServiceRegistry services, String contextId)
  • Method Details

    • registerBeanManager

      public void registerBeanManager(BeanManagerImpl manager)
    • getGlobalLenientObserverNotifier

      public ObserverNotifier getGlobalLenientObserverNotifier()
    • getGlobalStrictObserverNotifier

      public ObserverNotifier getGlobalStrictObserverNotifier()
    • getAllObserverMethods

      public Iterable<jakarta.enterprise.inject.spi.ObserverMethod<?>> getAllObserverMethods()
    • cleanupAfterBoot

      public void cleanupAfterBoot()
      Specified by:
      cleanupAfterBoot in interface org.jboss.weld.bootstrap.api.BootstrapService
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface org.jboss.weld.bootstrap.api.Service