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>
public class SubclassedComponentInstantiator<T> extends AbstractInstantiator<T>
Instantiates an enhanced subclass of a given component class. This class is thread-safe.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubclassedComponentInstantiator(EnhancedAnnotatedType<T> type, Bean<T> bean, ConstructorInjectionPoint<T> originalConstructor, BeanManagerImpl manager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<T>createEnhancedSubclass(EnhancedAnnotatedType<T> type, Bean<?> bean, BeanManagerImpl manager)static <T> SubclassedComponentInstantiator<T>forInterceptedDecoratedBean(EnhancedAnnotatedType<T> type, Bean<T> bean, AbstractInstantiator<T> delegate, BeanManagerImpl manager)static <T> SubclassedComponentInstantiator<T>forSubclassedEjb(EnhancedAnnotatedType<T> componentType, EnhancedAnnotatedType<T> subclass, Bean<T> bean, BeanManagerImpl manager)Constructor<T>getConstructor()Returns the constructor used for instantiation.ConstructorInjectionPoint<T>getConstructorInjectionPoint()Note that this method return aConstructorInjectionPointthat represents the constructor of an enhanced subclass.booleanhasDecoratorSupport()Indicates whether instances created by this Instantiator support decorators.booleanhasInterceptorSupport()Indicates whether instances created by this Instantiator support interception.protected EnhancedAnnotatedConstructor<T>initEnhancedSubclass(BeanManagerImpl manager, EnhancedAnnotatedType<T> type, Bean<?> bean, ConstructorInjectionPoint<T> originalConstructorInjectionPoint)StringtoString()-
Methods inherited from class org.jboss.weld.injection.producer.AbstractInstantiator
newInstance
-
-
-
-
Constructor Detail
-
SubclassedComponentInstantiator
protected SubclassedComponentInstantiator(EnhancedAnnotatedType<T> type, Bean<T> bean, ConstructorInjectionPoint<T> originalConstructor, BeanManagerImpl manager)
-
-
Method Detail
-
forSubclassedEjb
public static <T> SubclassedComponentInstantiator<T> forSubclassedEjb(EnhancedAnnotatedType<T> componentType, EnhancedAnnotatedType<T> subclass, Bean<T> bean, BeanManagerImpl manager)
-
forInterceptedDecoratedBean
public static <T> SubclassedComponentInstantiator<T> forInterceptedDecoratedBean(EnhancedAnnotatedType<T> type, Bean<T> bean, AbstractInstantiator<T> delegate, BeanManagerImpl manager)
-
initEnhancedSubclass
protected EnhancedAnnotatedConstructor<T> initEnhancedSubclass(BeanManagerImpl manager, EnhancedAnnotatedType<T> type, Bean<?> bean, ConstructorInjectionPoint<T> originalConstructorInjectionPoint)
-
createEnhancedSubclass
protected Class<T> createEnhancedSubclass(EnhancedAnnotatedType<T> type, Bean<?> bean, BeanManagerImpl manager)
-
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
public ConstructorInjectionPoint<T> 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
public Constructor<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.
-
-