Package org.jboss.as.ee.component

Examples of org.jboss.as.ee.component.BasicComponentInstance


    private WSComponentInstanceAssociationInterceptor() {}

    @Override
    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();
View Full Code Here


    private WSComponentInstanceAssociationInterceptor() {}

    @Override
    public Object processInvocation(final InterceptorContext interceptorContext) throws Exception {
        final WSComponent wsComponent = (WSComponent)interceptorContext.getPrivateData(Component.class);
        final BasicComponentInstance pojoComponentInstance = wsComponent.getComponentInstance();
        interceptorContext.putPrivateData(ComponentInstance.class, pojoComponentInstance);
        return interceptorContext.proceed();
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.ee.component.BasicComponentInstance

Copyright © 2018 www.massapicom. 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.