String giopMethodName = classData.getIDLNameTranslator().getIDLName(method); DynamicMethodMarshaller dmm = pm.getDynamicMethodMarshaller(method);
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; } }
String giopMethodName = classData.getIDLNameTranslator().getIDLName(method); DynamicMethodMarshaller dmm = pm.getDynamicMethodMarshaller(method);
javaMethod = classData.getIDLNameTranslator().getMethod(method); if (javaMethod == null) throw wrapper.methodNotFoundInTie(method, target.getClass().getName());
javaMethod = classData.getIDLNameTranslator().getMethod(method); if (javaMethod == null) throw wrapper.methodNotFoundInTie(method, target.getClass().getName());
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); } }
public synchronized String[] getTypeIds() { if (typeIds == null) { if (classData == null) { org.omg.CORBA.Object stub = makeStub(); typeIds = StubAdapter.getTypeIds(stub); } else { typeIds = classData.getTypeIds(); } } return typeIds; } }
public synchronized String[] getTypeIds() { if (typeIds == null) { if (classData == null) { org.omg.CORBA.Object stub = makeStub(); typeIds = StubAdapter.getTypeIds(stub); } else { typeIds = classData.getTypeIds(); } } return typeIds; } }
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId) { return classData.getTypeIds(); }
public InvocationHandler getInvocationHandler() { final DynamicStub stub = new DynamicStubImpl(classData.getTypeIds()); return getInvocationHandler(stub); }
public InvocationHandlerFactoryImpl(PresentationManager pm, PresentationManager.ClassData classData) { this.classData = classData; this.pm = pm; Class<?>[] remoteInterfaces = classData.getIDLNameTranslator().getInterfaces(); proxyInterfaces = new Class[remoteInterfaces.length + 1]; for (int ctr = 0; ctr < remoteInterfaces.length; ctr++) proxyInterfaces[ctr] = remoteInterfaces[ctr]; proxyInterfaces[remoteInterfaces.length] = DynamicStub.class; }
public InvocationHandlerFactoryImpl(PresentationManager pm, PresentationManager.ClassData classData) { this.classData = classData; this.pm = pm; Class<?>[] remoteInterfaces = classData.getIDLNameTranslator().getInterfaces(); proxyInterfaces = new Class[remoteInterfaces.length + 1]; for (int ctr = 0; ctr < remoteInterfaces.length; ctr++) proxyInterfaces[ctr] = remoteInterfaces[ctr]; proxyInterfaces[remoteInterfaces.length] = DynamicStub.class; }
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId) { return classData.getTypeIds(); }
@Override public PresentationManager.StubFactory makeDynamicStubFactory(final PresentationManager pm, final PresentationManager.ClassData classData, final ClassLoader classLoader) { final Class<?> myClass = classData.getMyClass(); Class<?> theClass = makeStubClass(myClass); return new StubFactory(classData, theClass); }
public InvocationHandler getInvocationHandler() { final DynamicStub stub = new DynamicStubImpl(classData.getTypeIds()); return getInvocationHandler(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; } }