Class GlobalEnablementBuilder

  • All Implemented Interfaces:
    org.jboss.weld.bootstrap.api.BootstrapService, org.jboss.weld.bootstrap.api.Service

    public class GlobalEnablementBuilder
    extends org.jboss.weld.bootstrap.api.helpers.AbstractBootstrapService
    This service gathers globally enabled interceptors, decorators and alternatives and builds a list of each.
    Author:
    Jozef Hartinger
    • Constructor Detail

      • GlobalEnablementBuilder

        public GlobalEnablementBuilder()
    • Method Detail

      • addAlternative

        public void addAlternative​(Class<?> javaClass,
                                   int priority)
      • addInterceptor

        public void addInterceptor​(Class<?> javaClass,
                                   int priority)
      • addDecorator

        public void addDecorator​(Class<?> javaClass,
                                 int priority)
      • getAlternativeList

        public List<Class<?>> getAlternativeList​(jakarta.enterprise.inject.spi.Extension extension)
      • getInterceptorList

        public List<Class<?>> getInterceptorList​(jakarta.enterprise.inject.spi.Extension extension)
      • getDecoratorList

        public List<Class<?>> getDecoratorList​(jakarta.enterprise.inject.spi.Extension extension)
      • isDirty

        public boolean isDirty()
        Returns:
        true if a new item was added and the up-to-date enablements were not built yet, false otherwise
      • cleanupAfterBoot

        public void cleanupAfterBoot()