Package org.jboss.weld.construction.api
Interface WeldCreationalContext<T>
-
- All Superinterfaces:
javax.enterprise.context.spi.CreationalContext<T>
public interface WeldCreationalContext<T> extends javax.enterprise.context.spi.CreationalContext<T>Extended version ofCreationalContextwhich gives the integrator additional control over the process of constructing an instance.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisConstructorInterceptionSuppressed()Indicates whether Weld-managedAroundConstructinterceptors are suppressed.voidregisterAroundConstructCallback(AroundConstructCallback<T> callback)Register a callback which is notified of component construction.voidsetConstructorInterceptionSuppressed(boolean value)By default Weld takes care ofAroundConstructinterceptors of a component instance which are bound to the component using interceptor bindings or theInterceptorsannotation.
-
-
-
Method Detail
-
setConstructorInterceptionSuppressed
void setConstructorInterceptionSuppressed(boolean value)
By default Weld takes care ofAroundConstructinterceptors of a component instance which are bound to the component using interceptor bindings or theInterceptorsannotation. 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 ofAroundConstructinterceptors. In that case an integrator is responsible for performingAroundConstructinterception.- Parameters:
value- the value- See Also:
registerAroundConstructCallback(AroundConstructCallback)
-
isConstructorInterceptionSuppressed
boolean isConstructorInterceptionSuppressed()
Indicates whether Weld-managedAroundConstructinterceptors are suppressed.- Returns:
- true if Weld-managed
AroundConstructinterceptors are suppressed - See Also:
setConstructorInterceptionSuppressed(boolean)
-
registerAroundConstructCallback
void registerAroundConstructCallback(AroundConstructCallback<T> callback)
Register a callback which is notified of component construction. This callback allows an integrator to perform additional tasks (e.g. invoking interceptors bound using the deployment descriptor) around constructor invocation.AroundConstructCallbacks are invoked in the order in which they were registered.- Parameters:
callback- the callback
-
-