public ClassDataImpl(Class<?> cls) { this.cls = cls; Graph gr = new GraphImpl(); NodeImpl root = new NodeImpl(cls); Set<Node> rootSet = getRootSet(cls, root, gr); // At this point, rootSet contains those remote interfaces that are not related by inheritance, and gr // contains all reachable remote interfaces. Class<?>[] interfaces = getInterfaces(rootSet); nameTranslator = IDLNameTranslatorImpl.get(interfaces); typeIds = makeTypeIds(root, gr, rootSet); ihfactory = new InvocationHandlerFactoryImpl(PresentationManagerImpl.this, this); dictionary = new HashMap<Object, Object>(); }
public InvocationHandler getInvocationHandler() { final DynamicStub stub = new DynamicStubImpl(classData.getTypeIds()); return getInvocationHandler(stub); }
public InvocationHandler getInvocationHandler() { final DynamicStub stub = new DynamicStubImpl(classData.getTypeIds()); return getInvocationHandler(stub); }
public ClassDataImpl(Class<?> cls) { this.cls = cls; Graph gr = new GraphImpl(); NodeImpl root = new NodeImpl(cls); Set<Node> rootSet = getRootSet(cls, root, gr); // At this point, rootSet contains those remote interfaces that are not related by inheritance, and gr // contains all reachable remote interfaces. Class<?>[] interfaces = getInterfaces(rootSet); nameTranslator = IDLNameTranslatorImpl.get(interfaces); typeIds = makeTypeIds(root, gr, rootSet); ihfactory = new InvocationHandlerFactoryImpl(PresentationManagerImpl.this, this); dictionary = new HashMap<Object, Object>(); }
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); } }