Interface AroundConstructCallback<T>

    • Method Detail

      • aroundConstruct

        T aroundConstruct​(ConstructionHandle<T> handle,
                          jakarta.enterprise.inject.spi.AnnotatedConstructor<T> constructor,
                          Object[] parameters,
                          Map<String,​Object> data)
                   throws Exception
        The method is called during component creation, allowing an integrator to perform additional steps (e.g. invoking interceptors bound using the deployment descriptor) around component construction.
        Parameters:
        handle - the handle for controlling the component creation process and retrieving the created instance
        constructor - a representation of the component constructor used for component creation
        parameters - 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.
        Returns:
        the created instance
        Throws:
        Exception - any underlying exception is propagated directly