Package org.apache.tuscany.core.wire

Examples of org.apache.tuscany.core.wire.TargetInvoker


    public void completeTargetChain(TargetWireFactory targetFactory, Class targetType, ScopeContext targetScopeContext)
            throws BuilderConfigException {
        if (FooExternalServiceContextFactory.class.isAssignableFrom(targetType)) {
            for (TargetInvocationConfiguration targetInvocationConfig : targetFactory.getConfiguration().getInvocationConfigurations()
                    .values()) {
                TargetInvoker invoker = new FooExternalServiceTargetInvoker(targetFactory.getConfiguration().getTargetName().getQualifiedName());
                targetInvocationConfig.setTargetInvoker(invoker);
            }

        }
    }
View Full Code Here


            return;
        }

        for (SourceInvocationConfiguration sourceInvocationConfig : sourceFactory.getConfiguration().getInvocationConfigurations()
                .values()) {
            TargetInvoker invoker = createInvoker(sourceFactory.getConfiguration()
                    .getTargetName(), sourceInvocationConfig.getMethod(), targetScopeContext, downScope);
            sourceInvocationConfig.setTargetInvoker(invoker);
        }
    }
View Full Code Here

            return;
        }
        for (TargetInvocationConfiguration targetInvocationConfig : targetFactory.getConfiguration().getInvocationConfigurations()
                .values()) {
            Method method = targetInvocationConfig.getMethod();
            TargetInvoker invoker = createInvoker(targetFactory.getConfiguration().getTargetName(), method, targetScopeContext, false);
            targetInvocationConfig.setTargetInvoker(invoker);
        }
    }
View Full Code Here

    public InvokerInterceptor() {
    }

    public Message invoke(Message msg) throws InvocationRuntimeException {
        TargetInvoker invoker = msg.getTargetInvoker();
        if (invoker == null) {
            throw new InvocationRuntimeException("No target invoker specified on message");
        }
        return invoker.invoke(msg);
    }
View Full Code Here

        InvocationConfiguration config = holder.config;
        if (config != null) {
           headInterceptor = config.getHeadInterceptor();
        }

        TargetInvoker invoker;

        if (holder.cachedInvoker == null) {
            assert config != null;
            if(config.getTargetInvoker() == null){
                TargetException e= new TargetException("No target invoker configured for operation");
View Full Code Here

TOP

Related Classes of org.apache.tuscany.core.wire.TargetInvoker

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.