Class GlobalEnablementBuilder
- java.lang.Object
-
- org.jboss.weld.bootstrap.api.helpers.AbstractBootstrapService
-
- org.jboss.weld.bootstrap.enablement.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 Summary
Constructors Constructor Description GlobalEnablementBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAlternative(Class<?> javaClass, int priority)
void
addDecorator(Class<?> javaClass, int priority)
void
addInterceptor(Class<?> javaClass, int priority)
void
cleanupAfterBoot()
ModuleEnablement
createModuleEnablement(BeanDeployment deployment)
List<Class<?>>
getAlternativeList(jakarta.enterprise.inject.spi.Extension extension)
List<Class<?>>
getDecoratorList(jakarta.enterprise.inject.spi.Extension extension)
List<Class<?>>
getInterceptorList(jakarta.enterprise.inject.spi.Extension extension)
boolean
isDirty()
String
toString()
-
-
-
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
-
createModuleEnablement
public ModuleEnablement createModuleEnablement(BeanDeployment deployment)
-
cleanupAfterBoot
public void cleanupAfterBoot()
-
-