Class DecoratorBeanBuilder<T>
- java.lang.Object
-
- org.apache.webbeans.component.creation.AbstractBeanBuilder
-
- org.apache.webbeans.component.creation.DecoratorBeanBuilder<T>
-
public class DecoratorBeanBuilder<T> extends AbstractBeanBuilder
Bean builder forInterceptorBeans.
-
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.enterprise.inject.spi.AnnotatedType<T>annotatedTypeprotected jakarta.enterprise.inject.spi.BeanAttributes<T>beanAttributesprotected WebBeansContextwebBeansContext
-
Constructor Summary
Constructors Constructor Description DecoratorBeanBuilder(WebBeansContext webBeansContext, jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType, jakarta.enterprise.inject.spi.BeanAttributes<T> beanAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckDecoratorConditions()voiddefineDecoratorRules()DecoratorBean<T>getBean()protected List<jakarta.enterprise.inject.spi.AnnotatedMethod<?>>getPostConstructMethods()protected List<jakarta.enterprise.inject.spi.AnnotatedMethod<?>>getPreDestroyMethods()booleanisDecoratorEnabled()If this method returnsfalsethegetBean()method must not get called.-
Methods inherited from class org.apache.webbeans.component.creation.AbstractBeanBuilder
validateNoDisposerWithoutProducer, validateNoProducerOrObserverMethod
-
-
-
-
Field Detail
-
webBeansContext
protected final WebBeansContext webBeansContext
-
annotatedType
protected final jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType
-
beanAttributes
protected final jakarta.enterprise.inject.spi.BeanAttributes<T> beanAttributes
-
-
Constructor Detail
-
DecoratorBeanBuilder
public DecoratorBeanBuilder(WebBeansContext webBeansContext, jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType, jakarta.enterprise.inject.spi.BeanAttributes<T> beanAttributes)
-
-
Method Detail
-
isDecoratorEnabled
public boolean isDecoratorEnabled()
If this method returnsfalsethegetBean()method must not get called.- Returns:
trueif the Decorator is enabled and a Bean should get created
-
checkDecoratorConditions
protected void checkDecoratorConditions()
-
defineDecoratorRules
public void defineDecoratorRules()
-
getBean
public DecoratorBean<T> getBean()
-
getPostConstructMethods
protected List<jakarta.enterprise.inject.spi.AnnotatedMethod<?>> getPostConstructMethods()
-
getPreDestroyMethods
protected List<jakarta.enterprise.inject.spi.AnnotatedMethod<?>> getPreDestroyMethods()
-
-