Package org.apache.tuscany.sca.binding.jsonrpc.server

Examples of org.apache.tuscany.sca.binding.jsonrpc.server.JSONRPCEntryPointServlet


    public InterfaceContract getBindingInterfaceContract() {
        return service.getInterfaceContract();
    }

    public void start() {
        JSONRPCEntryPointServlet servlet;

        Class<?> aClass = getTargetJavaClass(service.getInterfaceContract().getInterface());
        Object instance = component.createSelfReference(aClass).getService();

        servlet = new JSONRPCEntryPointServlet(binding.getName(), aClass, instance);

        // register the servlet based on the service name
        servletHost.addServletMapping(JSONRPC_SERVICE_MAPPING_PREFIX + binding.getName(), servlet);

        // if the script getter servlet is not already registered then register
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.jsonrpc.server.JSONRPCEntryPointServlet

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.