Package org.apache.tuscany.sca.core.invocation

Examples of org.apache.tuscany.sca.core.invocation.JDKProxyFactory.createProxy()


        JDKProxyFactory proxyService = new JDKProxyFactory();
             
        Class<?> proxyInterface = bundle.loadClass(interfaceClass.getName());
               

        Object proxy = proxyService.createProxy(proxyInterface, wire);
      
           
        bundleContext.registerService(proxyInterface.getName(), proxy, targetProperties);
           
       
View Full Code Here


        // Determine the service business interface
        Class<?> serviceInterface = getTargetJavaClass(service.getInterfaceContract().getInterface());

        // Create a Java proxy to the target service
        ProxyFactory proxyFactory = new JDKProxyFactory();
        Object proxy = proxyFactory.createProxy(serviceInterface, service.getRuntimeWire(binding));
       
        // Create and register a servlet for this service
        JSONRPCServiceServlet serviceServlet = new JSONRPCServiceServlet(binding.getName(), serviceInterface, proxy);
        int port;
        servletHost.addServletMapping(binding.getURI(), serviceServlet);
View Full Code Here

       
        Class<?> type = ((JavaInterface)rcs.getInterfaceContract().getInterface()).getJavaClass();

        // Create a Java proxy to the target service
        ProxyFactory proxyFactory = new JDKProxyFactory();
        Object proxy = proxyFactory.createProxy(type, rcs.getRuntimeWire(binding));

        servlet.addService(binding.getName(), type, proxy);
    }

    public void stop() {
View Full Code Here

        JDKProxyFactory proxyService = new JDKProxyFactory();
             
        Class<?> proxyInterface = bundle.loadClass(interfaceClass.getName());
               

        Object proxy = proxyService.createProxy(proxyInterface, wire);
      
           
        bundleContext.registerService(proxyInterface.getName(), proxy, targetProperties);
           
       
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.