public void setTarget(Remote target) { this.target = target; if (target == null) { classData = null; } else { Class<?> targetClass = target.getClass(); classData = pm.getClassData(targetClass); } }
/** * Get the appropriate StubFactoryFactory. This will be dynamic or static depending on whether * org.jboss.com.sun.CORBA.ORBUseDynamicStub is true or false. */ public static PresentationManager.StubFactoryFactory getStubFactoryFactory() { boolean useDynamicStubs = globalPM.useDynamicStubs(); return globalPM.getStubFactoryFactory(useDynamicStubs); }
public PresentationManager.StubFactory createStubFactory(String className, boolean isIDLStub, String remoteCodeBase, Class<?> expectedClass, ClassLoader classLoader) { Class<?> cls = null; try { cls = Util.loadClass(className, remoteCodeBase, classLoader); } catch (ClassNotFoundException exc) { throw wrapper.classNotFound3(CompletionStatus.COMPLETED_MAYBE, exc, className); } PresentationManager pm = ORB.getPresentationManager(); if (IDLEntity.class.isAssignableFrom(cls) && !Remote.class.isAssignableFrom(cls)) { // IDL stubs must always use static factories. PresentationManager.StubFactoryFactory sff = pm.getStubFactoryFactory(false); PresentationManager.StubFactory sf = sff.createStubFactory(className, true, remoteCodeBase, expectedClass, classLoader); return sf; } else { PresentationManager.ClassData classData = pm.getClassData(cls); return makeDynamicStubFactory(pm, classData, classLoader); } }
throw wrapper.methodNotFoundInTie(method, target.getClass().getName()); dmm = pm.getDynamicMethodMarshaller(javaMethod);
public PresentationManager.StubFactory createStubFactory(String className, boolean isIDLStub, String remoteCodeBase, Class<?> expectedClass, ClassLoader classLoader) { Class<?> cls = null; try { cls = Util.loadClass(className, remoteCodeBase, classLoader); } catch (ClassNotFoundException exc) { throw wrapper.classNotFound3(CompletionStatus.COMPLETED_MAYBE, exc, className); } PresentationManager pm = ORB.getPresentationManager(); if (IDLEntity.class.isAssignableFrom(cls) && !Remote.class.isAssignableFrom(cls)) { // IDL stubs must always use static factories. PresentationManager.StubFactoryFactory sff = pm.getStubFactoryFactory(false); PresentationManager.StubFactory sf = sff.createStubFactory(className, true, remoteCodeBase, expectedClass, classLoader); return sf; } else { PresentationManager.ClassData classData = pm.getClassData(cls); return makeDynamicStubFactory(pm, classData, classLoader); } }
throw wrapper.methodNotFoundInTie(method, target.getClass().getName()); dmm = pm.getDynamicMethodMarshaller(javaMethod);
/** * Get the appropriate StubFactoryFactory. This will be dynamic or static depending on whether * org.jboss.com.sun.CORBA.ORBUseDynamicStub is true or false. */ public static PresentationManager.StubFactoryFactory getStubFactoryFactory() { boolean useDynamicStubs = globalPM.useDynamicStubs(); return globalPM.getStubFactoryFactory(useDynamicStubs); }
public void setTarget(Remote target) { this.target = target; if (target == null) { classData = null; } else { Class<?> targetClass = target.getClass(); classData = pm.getClassData(targetClass); } }
DynamicMethodMarshaller dmm = pm.getDynamicMethodMarshaller(method);
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); } }
DynamicMethodMarshaller dmm = pm.getDynamicMethodMarshaller(method);
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); } }