Class DefaultInstantiator<T>
- java.lang.Object
-
- org.jboss.weld.injection.producer.AbstractInstantiator<T>
-
- org.jboss.weld.injection.producer.DefaultInstantiator<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
Instantiator<T>
public class DefaultInstantiator<T> extends AbstractInstantiator<T>
Creates a new Java object by calling its class constructor. This class is thread-safe.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description DefaultInstantiator(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Constructor<T>
getConstructor()
Returns the constructor used for instantiation.ConstructorInjectionPoint<T>
getConstructorInjectionPoint()
List<ParameterInjectionPoint<?,T>>
getParameterInjectionPoints()
boolean
hasDecoratorSupport()
Indicates whether instances created by this Instantiator support decorators.boolean
hasInterceptorSupport()
Indicates whether instances created by this Instantiator support interception.String
toString()
-
Methods inherited from class org.jboss.weld.injection.producer.AbstractInstantiator
newInstance
-
-
-
-
Constructor Detail
-
DefaultInstantiator
public DefaultInstantiator(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl manager)
-
-
Method Detail
-
getConstructorInjectionPoint
public ConstructorInjectionPoint<T> getConstructorInjectionPoint()
- Specified by:
getConstructorInjectionPoint
in classAbstractInstantiator<T>
-
getConstructor
public Constructor<T> getConstructor()
Description copied from interface:Instantiator
Returns 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.
-
getParameterInjectionPoints
public List<ParameterInjectionPoint<?,T>> getParameterInjectionPoints()
-
hasInterceptorSupport
public boolean hasInterceptorSupport()
Description copied from interface:Instantiator
Indicates whether instances created by this Instantiator support interception.
-
hasDecoratorSupport
public boolean hasDecoratorSupport()
Description copied from interface:Instantiator
Indicates whether instances created by this Instantiator support decorators.
-
-