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.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)
-
-
-
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:
newInstancein interfaceInstantiator<T>
-
hasInterceptorSupport
public boolean hasInterceptorSupport()
Description copied from interface:InstantiatorIndicates whether instances created by this Instantiator support interception.- Specified by:
hasInterceptorSupportin interfaceInstantiator<T>
-
hasDecoratorSupport
public boolean hasDecoratorSupport()
Description copied from interface:InstantiatorIndicates whether instances created by this Instantiator support decorators.- Specified by:
hasDecoratorSupportin interfaceInstantiator<T>
-
getConstructor
public Constructor<T> getConstructor()
Description copied from interface:InstantiatorReturns 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:
getConstructorin interfaceInstantiator<T>
-
-