Examples of InvokerFactory


Examples of org.apache.tuscany.sca.extension.helper.InvokerFactory

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

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

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

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

Examples of org.pirkaengine.core.script.InvokerFactory

        assertSame(InvokerFactory.getInstance(), InvokerFactory.getInstance());
    }

    @Test(expected = IllegalArgumentException.class)
    public void InvokerFactory_null() {
        new InvokerFactory(null);
    }
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.