Interface Instantiator<T>
-
- Type Parameters:
T
-
- All Known Implementing Classes:
AbstractDecoratorApplyingInstantiator
,AbstractInstantiator
,ConstructorInterceptionInstantiator
,DefaultInstantiator
,ForwardingInstantiator
,InterceptorApplyingInstantiator
,SubclassDecoratorApplyingInstantiator
,SubclassedComponentInstantiator
public interface Instantiator<T>
Implementation of this interface is capable of producing Java objects. This abstraction allows different strategies to be employed in a component creation process, e.g.DefaultInstantiator
orSubclassedComponentInstantiator
.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Constructor<T>
getConstructor()
Returns the constructor used for instantiation.boolean
hasDecoratorSupport()
Indicates whether instances created by this Instantiator support decorators.boolean
hasInterceptorSupport()
Indicates whether instances created by this Instantiator support interception.T
newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
-
-
-
Method Detail
-
newInstance
T newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
-
hasInterceptorSupport
boolean hasInterceptorSupport()
Indicates whether instances created by this Instantiator support interception.
-
hasDecoratorSupport
boolean hasDecoratorSupport()
Indicates whether instances created by this Instantiator support decorators.
-
getConstructor
Constructor<T> getConstructor()
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.
-
-