T
- type the component classpublic interface AroundConstructCallback<T>
WeldCreationalContext
. Weld will then call the
aroundConstruct(ConstructionHandle, AnnotatedConstructor, Object[], Map)
method of the implementation during component creation, allowing an
integrator to perform additional steps (e.g. invoking interceptors bound using the deployment descriptor) around component construction.WeldCreationalContext.registerAroundConstructCallback(AroundConstructCallback)
Modifier and Type | Method and Description |
---|---|
T |
aroundConstruct(ConstructionHandle<T> handle,
javax.enterprise.inject.spi.AnnotatedConstructor<T> constructor,
Object[] parameters,
Map<String,Object> data)
The method is called during component creation, allowing an integrator to perform additional steps (e.g.
|
T aroundConstruct(ConstructionHandle<T> handle, javax.enterprise.inject.spi.AnnotatedConstructor<T> constructor, Object[] parameters, Map<String,Object> data) throws Exception
handle
- the handle for controlling the component creation process and retrieving the created instanceconstructor
- a representation of the component constructor used for component creationparameters
- the parameters that will be passed to the component constructor. These parameters should be made available to AroundConstruct
interceptors through the InvocationContext.getParameters()
method. An implementation is free to modify the parameters or provide a
different parameter array to the ConstructionHandle
.data
- the context data associated with this AroundConstruct
interception. The data should be made available to AroundConstruct
interceptors through InvocationContext.getContextData()
. An implementation is free to modify the map or to provide a different one to the
ConstructionHandle
.Exception
- any underlying exception is propagated directlyCopyright © 2008-2015. All Rights Reserved.