Package org.jboss.as.webservices.injection

Examples of org.jboss.as.webservices.injection.WSComponent.createInstance()


    public Object processInvocation(final InterceptorContext interceptorContext) throws Exception {
        final WSComponent wsComponent = (WSComponent)interceptorContext.getPrivateData(Component.class);
        BasicComponentInstance pojoComponentInstance = null;
        if (interceptorContext.getPrivateData(ManagedReference.class) != null) {
           ManagedReference reference = interceptorContext.getPrivateData(ManagedReference.class);
           pojoComponentInstance = (BasicComponentInstance)wsComponent.createInstance(reference.getInstance());
        } else {
           pojoComponentInstance = wsComponent.getComponentInstance();
        }
        interceptorContext.putPrivateData(ComponentInstance.class, pojoComponentInstance);
        return interceptorContext.proceed();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.