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 or SubclassedComponentInstantiator.- Author:
- Jozef Hartinger
-
Method Summary
Modifier and TypeMethodDescriptionReturns the constructor used for instantiation.booleanIndicates whether instances created by this Instantiator support decorators.booleanIndicates whether instances created by this Instantiator support interception.newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
-
Method Details
-
newInstance
-
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.
-