Class ForwardingInstantiator<T>
- java.lang.Object
-
- org.jboss.weld.injection.producer.ForwardingInstantiator<T>
-
- All Implemented Interfaces:
Instantiator<T>
- Direct Known Subclasses:
AbstractDecoratorApplyingInstantiator
,ConstructorInterceptionInstantiator
,InterceptorApplyingInstantiator
public class ForwardingInstantiator<T> extends Object implements Instantiator<T>
-
-
Constructor Summary
Constructors Constructor Description ForwardingInstantiator(Instantiator<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Instantiator<T>
delegate()
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(CreationalContext<T> ctx, BeanManagerImpl manager)
-
-
-
Constructor Detail
-
ForwardingInstantiator
public ForwardingInstantiator(Instantiator<T> delegate)
-
-
Method Detail
-
delegate
protected Instantiator<T> delegate()
-
newInstance
public T newInstance(CreationalContext<T> ctx, BeanManagerImpl manager)
- Specified by:
newInstance
in interfaceInstantiator<T>
-
hasInterceptorSupport
public boolean hasInterceptorSupport()
Description copied from interface:Instantiator
Indicates whether instances created by this Instantiator support interception.- Specified by:
hasInterceptorSupport
in interfaceInstantiator<T>
-
hasDecoratorSupport
public boolean hasDecoratorSupport()
Description copied from interface:Instantiator
Indicates whether instances created by this Instantiator support decorators.- Specified by:
hasDecoratorSupport
in interfaceInstantiator<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.- Specified by:
getConstructor
in interfaceInstantiator<T>
-
-