Class 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 jakarta.servlet.ServletContextEvent, where the event is only fired to BDAs accessible from the web archive.
    Author:
    Jozef Hartinger
    • 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<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