Package org.apache.tuscany.sca.core.factory

Examples of org.apache.tuscany.sca.core.factory.InstanceWrapper


        ClassLoader tccl = Thread.currentThread().getContextClassLoader();
       
        try {
            // The following call might create a new conversation, as a result, the msg.getConversationID() might
            // return a new value
            InstanceWrapper wrapper = scopeContainer.getWrapper(contextId);

            Object instance = wrapper.getInstance();

            // If the method couldn't be computed statically, or the instance being
            // invoked is a user-specified callback object that doesn't implement
            // the service interface from which the reflective method was obtained,
            // compute the method object dynamically for this invocation.
View Full Code Here


    @Override
    public  InstanceWrapper getWrapper(KEY contextId) throws TargetResolutionException {
        if (lifecycleState != RUNNING) {
            throw new TargetResolutionException("scope container not running, lifecycleState=" + lifecycleState);
        }
        InstanceWrapper ctx = createInstanceWrapper();
        ctx.start();
        return ctx;
    }
View Full Code Here

    @Override
    public  InstanceWrapper getWrapper(KEY contextId) throws TargetResolutionException {
        if (lifecycleState != RUNNING) {
            throw new TargetResolutionException("scope container not running, lifecycleState=" + lifecycleState);
        }
        InstanceWrapper ctx = createInstanceWrapper();
        ctx.start();
        return ctx;
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.core.factory.InstanceWrapper

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.