Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * JBoss, Home of Professional Open Source
  * Copyright 2013, Red Hat, Inc., and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.weld.construction.api;
An implementation of this interface may be registered with a WeldCreationalContext. Weld will then call the aroundConstruct(org.jboss.weld.construction.api.ConstructionHandle,javax.enterprise.inject.spi.AnnotatedConstructor,java.lang.Object[],java.util.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.

Parameters:
<T> type the component class
Author(s):
Jozef Hartinger
See also:
WeldCreationalContext.registerAroundConstructCallback(org.jboss.weld.construction.api.AroundConstructCallback)
public interface AroundConstructCallback<T> {

    
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 javax.interceptor.AroundConstruct interceptors through the javax.interceptor.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 javax.interceptor.AroundConstruct interception. The data should be made available to javax.interceptor.AroundConstruct interceptors through javax.interceptor.InvocationContext.getContextData(). An implementation is free to modify the map or to provide a different one to the ConstructionHandle.
Returns:
the created instance
Throws:
java.lang.Exception any underlying exception is propagated directly
    T aroundConstruct(ConstructionHandle<T> handleAnnotatedConstructor<T> constructorObject[] parametersMap<StringObjectdatathrows Exception;
New to GrepCode? Check out our FAQ X