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; } }
public Object readResolve() { String repositoryId = ior.getRepositoryId(); String cname = RepositoryId.cache.getId(repositoryId).getClassName(); Class<?> cls = null; try { cls = JDKBridge.loadClass(cname, null, null); } catch (ClassNotFoundException exc) { // XXX log this } PresentationManager pm = org.jboss.com.sun.corba.se.spi.orb.ORB.getPresentationManager(); PresentationManager.ClassData classData = pm.getClassData(cls); InvocationHandlerFactoryImpl ihfactory = (InvocationHandlerFactoryImpl) classData.getInvocationHandlerFactory(); return ihfactory.getInvocationHandler(this); } }
public Object readResolve() { String repositoryId = ior.getRepositoryId(); String cname = RepositoryId.cache.getId(repositoryId).getClassName(); Class<?> cls = null; try { cls = JDKBridge.loadClass(cname, null, null); } catch (ClassNotFoundException exc) { // XXX log this } PresentationManager pm = org.jboss.com.sun.corba.se.spi.orb.ORB.getPresentationManager(); PresentationManager.ClassData classData = pm.getClassData(cls); InvocationHandlerFactoryImpl ihfactory = (InvocationHandlerFactoryImpl) classData.getInvocationHandlerFactory(); return ihfactory.getInvocationHandler(this); } }