Package org.jboss.weld.bean
Class DecoratorImpl<T>
java.lang.Object
org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
org.jboss.weld.bean.CommonBean<T>
org.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,Class<T>>
org.jboss.weld.bean.AbstractClassBean<T>
org.jboss.weld.bean.ManagedBean<T>
org.jboss.weld.bean.DecoratorImpl<T>
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<T>,jakarta.enterprise.inject.spi.Bean<T>,jakarta.enterprise.inject.spi.BeanAttributes<T>,jakarta.enterprise.inject.spi.Decorator<T>,jakarta.enterprise.inject.spi.PassivationCapable,ClassBean<T>,DecorableBean<T>,WeldBean<T>,WeldDecorator<T>
-
Field Summary
Fields inherited from class org.jboss.weld.bean.AbstractClassBean
annotatedType, enhancedAnnotatedItem, invokableMethodsFields inherited from class org.jboss.weld.bean.AbstractBean
typeFields inherited from class org.jboss.weld.bean.RIBean
beanManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDecoratorImpl(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager) -
Method Summary
Modifier and TypeMethodDescriptiongetDecoratorMethod(Method method) Returns the decorated method that can decorate a particular method, if one existsprotected voidprotected voidprotected voidprotected voidvoidinternalInitialize(BeanDeployerEnvironment environment) Initializes the bean and its metadatastatic <T> DecoratorImpl<T>of(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager) Creates a decorator beantoString()Methods inherited from class org.jboss.weld.bean.ManagedBean
checkBeanImplementation, checkType, create, destroy, initializeAfterBeanDiscovery, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, setProducer, specializeMethods inherited from class org.jboss.weld.bean.AbstractClassBean
cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducerMethods inherited from class org.jboss.weld.bean.AbstractBean
checkSpecialization, getSpecializedBeans, getType, isDependent, isIgnoreFinalMethods, isProxyRequired, isSpecializing, postSpecialize, preInitialize, setIgnoreFinalMethodsMethods inherited from class org.jboss.weld.bean.RIBean
getBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributesMethods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, unwrapMethods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.Bean
getBeanClass, getInjectionPointsMethods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from interface org.jboss.weld.bean.ClassBean
getBeanManagerMethods inherited from interface jakarta.enterprise.context.spi.Contextual
create, destroyMethods inherited from interface jakarta.enterprise.inject.spi.PassivationCapable
getIdMethods inherited from interface org.jboss.weld.bean.WeldBean
getIdentifier, getPriorityMethods inherited from interface org.jboss.weld.bean.WeldDecorator
getEnhancedAnnotated
-
Constructor Details
-
DecoratorImpl
protected DecoratorImpl(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
-
-
Method Details
-
of
public static <T> DecoratorImpl<T> of(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager) Creates a decorator bean- Type Parameters:
T- The type- Parameters:
clazz- The classbeanManager- the current manager- Returns:
- a Bean
-
internalInitialize
Description copied from class:AbstractClassBeanInitializes the bean and its metadata- Overrides:
internalInitializein classManagedBean<T>
-
initDecoratedTypes
protected void initDecoratedTypes() -
initDelegateInjectionPoint
protected void initDelegateInjectionPoint() -
initDelegateBindings
protected void initDelegateBindings() -
initDelegateType
protected void initDelegateType() -
getDelegateQualifiers
- Specified by:
getDelegateQualifiersin interfacejakarta.enterprise.inject.spi.Decorator<T>
-
getDelegateType
- Specified by:
getDelegateTypein interfacejakarta.enterprise.inject.spi.Decorator<T>
-
getDecoratedTypes
- Specified by:
getDecoratedTypesin interfacejakarta.enterprise.inject.spi.Decorator<T>
-
getDelegateInjectionPoint
-
getDecoratorMethod
Description copied from interface:WeldDecoratorReturns the decorated method that can decorate a particular method, if one exists Such a method must be implement one of the decorated type methods, and can be parametrized- Specified by:
getDecoratorMethodin interfaceWeldDecorator<T>- Returns:
-
toString
- Overrides:
toStringin classManagedBean<T>
-