Package org.apache.tuscany.sca.spi

Examples of org.apache.tuscany.sca.spi.InvokerFactory


    public Invoker createCallbackInvoker(Operation operation) {
        throw new RuntimeException("TODO: callbacks not yet implemented");
    }

    public void start() {
        InvokerFactory factory = implementationActivator.createInvokerFactory(runtimeComponent, impl, userImpl);
        for (InvokerProxy invoker : invokers) {
            invoker.start(factory);
        }
    }
View Full Code Here


public class EJBBindingActivator implements BindingActivator<EJBBinding> {

    public InvokerFactory createInvokerFactory(RuntimeComponent rc, RuntimeComponentReference rcr, final Binding b, final EJBBinding binding) {
        // TODO: assumes a Java interface, need to support tuscany generic Interface
        final Class si = ((JavaInterface)rcr.getInterfaceContract().getInterface()).getJavaClass();
        return new InvokerFactory() {
            public Invoker createInvoker(Operation operation) {
                return new EJBTargetInvoker((EJBBinding)binding, si, operation);
            }
         };
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.spi.InvokerFactory

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.