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.DefaultInstantiatororSubclassedComponentInstantiator.- 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.booleanhasDecoratorSupport()Indicates whether instances created by this Instantiator support decorators.booleanhasInterceptorSupport()Indicates whether instances created by this Instantiator support interception.TnewInstance(CreationalContext<T> ctx, BeanManagerImpl manager)
-
-
-
Method Detail
-
newInstance
T newInstance(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.
-
-