// 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, componentService, serviceContract, serviceInterface, proxy);
String mapping = binding.getURI();
if (!mapping.endsWith("/")) {
mapping += "/";
}
if (!mapping.endsWith("*")) {