Package org.jboss.weld.construction.api
Interface WeldCreationalContext<T>
- All Superinterfaces:
jakarta.enterprise.context.spi.CreationalContext<T>
public interface WeldCreationalContext<T>
extends jakarta.enterprise.context.spi.CreationalContext<T>
Extended version of
CreationalContext which gives the integrator additional control over the process of constructing
an instance.- Author:
- Jozef Hartinger
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether Weld-managedAroundConstructinterceptors are suppressed.voidRegister 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.Methods inherited from interface jakarta.enterprise.context.spi.CreationalContext
push, release
-
Method Details
-
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:
-
isConstructorInterceptionSuppressed
boolean isConstructorInterceptionSuppressed()Indicates whether Weld-managedAroundConstructinterceptors are suppressed.- Returns:
- true if Weld-managed
AroundConstructinterceptors are suppressed - See Also:
-
registerAroundConstructCallback
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
-