Package jakarta.enterprise.inject.spi
Interface Decorator<T>
- Type Parameters:
T- the decorator bean class
- All Superinterfaces:
Bean<T>,BeanAttributes<T>,Contextual<T>
Represents an enabled decorator.
Since CDI 2.0, an implementation of this interface may implement Prioritized in order to enable the decorator with
given priority value for entire application.
CDI Lite implementations are not required to provide support for decorators.
-
Method Summary
Modifier and TypeMethodDescriptionObtains the decorated types.Obtains theof the delegate injection point.invalid reference
qualifiers
Obtains the type of the delegate injection point.Methods 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 jakarta.enterprise.context.spi.Contextual
create, destroy
-
Method Details
-
getDelegateType
Type getDelegateType()Obtains the type of the delegate injection point.
- Returns:
- the delegate type
-
getDelegateQualifiers
Set<Annotation> getDelegateQualifiers()Obtains the
of the delegate injection point.invalid reference
qualifiers
- Returns:
- the delegate
invalid reference
qualifiers
-
getDecoratedTypes
Obtains the decorated types.
- Returns:
- the set of decorated types
-