public org.omg.CORBA.Object makeStub() { // Construct the dynamic proxy that implements this stub // using the composite handler InvocationHandlerFactory factory = classData.getInvocationHandlerFactory(); LinkedInvocationHandler handler = (LinkedInvocationHandler) factory.getInvocationHandler(); Class<?>[] interfaces = factory.getProxyInterfaces(); DynamicStub stub = (DynamicStub) Proxy.newProxyInstance(loader, interfaces, handler); handler.setProxy((Proxy) stub); return stub; } }
public org.omg.CORBA.Object makeStub() { // Construct the dynamic proxy that implements this stub // using the composite handler InvocationHandlerFactory factory = classData.getInvocationHandlerFactory(); LinkedInvocationHandler handler = (LinkedInvocationHandler) factory.getInvocationHandler(); Class<?>[] interfaces = factory.getProxyInterfaces(); DynamicStub stub = (DynamicStub) Proxy.newProxyInstance(loader, interfaces, handler); handler.setProxy((Proxy) stub); return stub; } }