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 ofCreationalContext
which 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 boolean
isConstructorInterceptionSuppressed()
Indicates whether Weld-managedAroundConstruct
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 ofAroundConstruct
interceptors of a component instance which are bound to the component using interceptor bindings or theInterceptors
annotation.
-
-
-
Method Detail
-
setConstructorInterceptionSuppressed
void setConstructorInterceptionSuppressed(boolean value)
By default Weld takes care ofAroundConstruct
interceptors of a component instance which are bound to the component using interceptor bindings or theInterceptors
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 ofAroundConstruct
interceptors. In that case an integrator is responsible for performingAroundConstruct
interception.- Parameters:
value
- the value- See Also:
registerAroundConstructCallback(AroundConstructCallback)
-
isConstructorInterceptionSuppressed
boolean isConstructorInterceptionSuppressed()
Indicates whether Weld-managedAroundConstruct
interceptors are suppressed.- Returns:
- true if Weld-managed
AroundConstruct
interceptors 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.AroundConstructCallback
s are invoked in the order in which they were registered.- Parameters:
callback
- the callback
-
-