Examples of TargetInvoker


Examples of com.sardak.antform.util.TargetInvoker

          built = false;
          control = null;
        }
        if (getActionSource() != null && getActionSource().getTarget() != null
            && findTargetByName(getActionSource().getTarget()) != null) {
          TargetInvoker invoker = new TargetInvoker(this, getActionSource());
          invoker.perform();
        }
      }
    } while (isLoop() && getActionSource() != null && !getActionSource().isLoopExit() && shouldShow());
  }
View Full Code Here

Examples of com.sardak.antform.util.TargetInvoker

        if (dynamic) {
          built = false;
          control = null;
        }
        if (getActionSource() != null && getActionSource().getTarget() != null && findTargetByName(getActionSource().getTarget()) != null) {
          TargetInvoker invoker = new TargetInvoker(this, getActionSource());
          invoker.perform();
        }
      }
    } while (isLoop() && getActionSource() != null && !getActionSource().isLoopExit() && shouldShow());
  }
View Full Code Here

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

       
        public EntryPointInvokerInterceptor() {
        }

        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

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

       
        public EntryPointInvokerInterceptor() {
        }

        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

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

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

            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

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

            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

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

    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

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

        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

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

* @version $Rev: 476842 $ $Date: 2006-11-19 08:03:50 -0800 (Sun, 19 Nov 2006) $
*/
public class SpringInterceptor implements Interceptor {

    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
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.