public interface WeldCreationalContext<T>
extends javax.enterprise.context.spi.CreationalContext<T>
CreationalContext
which gives the integrator additional control over the process of constructing an instance.Modifier and Type | Method and Description |
---|---|
boolean |
isConstructorInterceptionSuppressed()
Indicates whether Weld-managed
AroundConstruct interceptors are suppressed. |
void |
registerAroundConstructCallback(AroundConstructCallback<T> callback)
Register a callback which is notified of component construction.
|
void |
setConstructorInterceptionSuppressed(boolean value)
By default Weld takes care of
AroundConstruct interceptors of a component instance which are bound to the component using interceptor bindings or
the Interceptors annotation. |
void setConstructorInterceptionSuppressed(boolean value)
AroundConstruct
interceptors of a component instance which are bound to the component using interceptor bindings or
the Interceptors
annotation. This may not be desired should an integrator want to manage these interceptors themselves. In that case this switch
may be used to suppress Weld management of AroundConstruct
interceptors. In that case an integrator is responsible for performing
AroundConstruct
interception.value
- the valueregisterAroundConstructCallback(AroundConstructCallback)
boolean isConstructorInterceptionSuppressed()
AroundConstruct
interceptors are suppressed.AroundConstruct
interceptors are suppressedsetConstructorInterceptionSuppressed(boolean)
void registerAroundConstructCallback(AroundConstructCallback<T> callback)
AroundConstructCallback
s are invoked in the order in which
they were registered.callback
- the callbackCopyright © 2008-2015. All Rights Reserved.