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; }
/** * 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 Tie getTie() { return dynamicStubFactoryFactory.getTie(null); }
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 void setTarget(Remote target) { this.target = target; if (target == null) { classData = null; } else { Class<?> targetClass = target.getClass(); classData = pm.getClassData(targetClass); } }
/** * This method is used to create untyped object references. */ public static org.omg.CORBA.Object makeObjectReference(IOR ior) { CorbaClientDelegate del = makeClientDelegate(ior); org.omg.CORBA.Object objectImpl = new CORBAObjectImpl(); StubAdapter.setDelegate(objectImpl, del); return objectImpl; }
public static void setDelegate(Object stub, Delegate delegate) { if (stub instanceof DynamicStub) ((DynamicStub) stub).setDelegate(delegate); else if (stub instanceof ObjectImpl) ((ObjectImpl) stub)._set_delegate(delegate); else throw wrapper.setDelegateRequiresStub(); }
public static OutputStream request(Object stub, String operation, boolean responseExpected) { if (stub instanceof DynamicStub) return ((DynamicStub) stub).request(operation, responseExpected); else if (stub instanceof ObjectImpl) return ((ObjectImpl) stub)._request(operation, responseExpected); else throw wrapper.requestRequiresStub(); } }
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; }
/** * 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 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 Tie getTie() { return dynamicStubFactoryFactory.getTie(null); }
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId) { return classData.getTypeIds(); }
public void setTarget(Remote target) { this.target = target; if (target == null) { classData = null; } else { Class<?> targetClass = target.getClass(); classData = pm.getClassData(targetClass); } }
/** * This method is used to create untyped object references. */ public static org.omg.CORBA.Object makeObjectReference(IOR ior) { CorbaClientDelegate del = makeClientDelegate(ior); org.omg.CORBA.Object objectImpl = new CORBAObjectImpl(); StubAdapter.setDelegate(objectImpl, del); return objectImpl; }
public static void setDelegate(Object stub, Delegate delegate) { if (stub instanceof DynamicStub) ((DynamicStub) stub).setDelegate(delegate); else if (stub instanceof ObjectImpl) ((ObjectImpl) stub)._set_delegate(delegate); else throw wrapper.setDelegateRequiresStub(); }
public static OutputStream request(Object stub, String operation, boolean responseExpected) { if (stub instanceof DynamicStub) return ((DynamicStub) stub).request(operation, responseExpected); else if (stub instanceof ObjectImpl) return ((ObjectImpl) stub)._request(operation, responseExpected); else throw wrapper.requestRequiresStub(); } }
private static Tie loadTie(Class<?> theClass) { return org.jboss.com.sun.corba.se.spi.orb.ORB.getStubFactoryFactory().getTie(theClass); }
private static Tie loadTie(Class<?> theClass) { return org.jboss.com.sun.corba.se.spi.orb.ORB.getStubFactoryFactory().getTie(theClass); }