Class SubclassedComponentInstantiator<T>
java.lang.Object
org.jboss.weld.injection.producer.AbstractInstantiator<T>
org.jboss.weld.injection.producer.SubclassedComponentInstantiator<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Instantiator<T>
Instantiates an enhanced subclass of a given component class. This class is thread-safe.
- Author:
- Jozef Hartinger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSubclassedComponentInstantiator(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, ConstructorInjectionPoint<T> originalConstructor, BeanManagerImpl manager) -
Method Summary
Modifier and TypeMethodDescriptioncreateEnhancedSubclass(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<?> bean, BeanManagerImpl manager) static <T> SubclassedComponentInstantiator<T>forInterceptedDecoratedBean(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, AbstractInstantiator<T> delegate, BeanManagerImpl manager) static <T> SubclassedComponentInstantiator<T>forSubclassedEjb(EnhancedAnnotatedType<T> componentType, EnhancedAnnotatedType<T> subclass, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl manager) Returns the constructor used for instantiation.Note that this method return aConstructorInjectionPointthat represents the constructor of an enhanced subclass.booleanIndicates whether instances created by this Instantiator support decorators.booleanIndicates whether instances created by this Instantiator support interception.protected EnhancedAnnotatedConstructor<T>initEnhancedSubclass(BeanManagerImpl manager, EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<?> bean, ConstructorInjectionPoint<T> originalConstructorInjectionPoint) toString()Methods inherited from class org.jboss.weld.injection.producer.AbstractInstantiator
newInstance
-
Constructor Details
-
SubclassedComponentInstantiator
protected SubclassedComponentInstantiator(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, ConstructorInjectionPoint<T> originalConstructor, BeanManagerImpl manager)
-
-
Method Details
-
forSubclassedEjb
public static <T> SubclassedComponentInstantiator<T> forSubclassedEjb(EnhancedAnnotatedType<T> componentType, EnhancedAnnotatedType<T> subclass, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl manager) -
forInterceptedDecoratedBean
public static <T> SubclassedComponentInstantiator<T> forInterceptedDecoratedBean(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, AbstractInstantiator<T> delegate, BeanManagerImpl manager) -
initEnhancedSubclass
protected EnhancedAnnotatedConstructor<T> initEnhancedSubclass(BeanManagerImpl manager, EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<?> bean, ConstructorInjectionPoint<T> originalConstructorInjectionPoint) -
createEnhancedSubclass
protected Class<T> createEnhancedSubclass(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<?> bean, BeanManagerImpl manager) -
toString
-
hasInterceptorSupport
public boolean hasInterceptorSupport()Description copied from interface:InstantiatorIndicates whether instances created by this Instantiator support interception. -
hasDecoratorSupport
public boolean hasDecoratorSupport()Description copied from interface:InstantiatorIndicates whether instances created by this Instantiator support decorators. -
getConstructorInjectionPoint
Note that this method return aConstructorInjectionPointthat represents the constructor of an enhanced subclass. UsegetConstructor()to get the matching component class constructor.- Specified by:
getConstructorInjectionPointin classAbstractInstantiator<T>
-
getConstructor
Description copied from interface:InstantiatorReturns the constructor used for instantiation. If an enhanced subclass is used for a component instance, this method returns the matching constructor of the original component class.
-