Class StubAdapter
- java.lang.Object
-
- com.sun.corba.ee.spi.presentation.rmi.StubAdapter
-
public abstract class StubAdapter extends java.lang.ObjectProvide access to stub delegate and type id information independent of the stub type. This class exists because ObjectImpl does not have an interface for the 3 delegate and type id methods, so a DynamicStub has a different type. We cannot simply change ObjectImpl as it is a standard API. We also cannot change the code generation of Stubs, as that is also standard. Hence I am left with this ugly class.
-
-
Field Summary
Fields Modifier and Type Field Description private static ORBUtilSystemExceptionwrapper
-
Constructor Summary
Constructors Modifier Constructor Description privateStubAdapter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectactivateServant(Servant servant)Use implicit activation to get an object reference for the servant.static ObjectactivateTie(Tie tie)Given any Tie, return the corresponding object refernce, activating the Servant if necessary.static voidconnect(java.lang.Object stub, ORB orb)static DelegategetDelegate(java.lang.Object stub)This also gets the delegate from a Servant by using Servant._this_object()static ORBgetORB(java.lang.Object stub)static java.lang.String[]getTypeIds(java.lang.Object stub)static booleanisLocal(java.lang.Object stub)static booleanisStub(java.lang.Object stub)static booleanisStubClass(java.lang.Class cls)static OutputStreamrequest(java.lang.Object stub, java.lang.String operation, boolean responseExpected)static voidsetDelegate(java.lang.Object stub, Delegate delegate)
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException wrapper
-
-
Method Detail
-
isStubClass
public static boolean isStubClass(java.lang.Class cls)
-
isStub
public static boolean isStub(java.lang.Object stub)
-
setDelegate
public static void setDelegate(java.lang.Object stub, Delegate delegate)
-
activateServant
public static Object activateServant(Servant servant)
Use implicit activation to get an object reference for the servant.- Parameters:
servant- servant to activate- Returns:
- reference to servant
-
activateTie
public static Object activateTie(Tie tie)
Given any Tie, return the corresponding object refernce, activating the Servant if necessary.- Parameters:
tie- tie to activate- Returns:
- reference to Tie
-
getDelegate
public static Delegate getDelegate(java.lang.Object stub)
This also gets the delegate from a Servant by using Servant._this_object()- Parameters:
stub- stub to get delegate of- Returns:
- the stub's Delegate
-
getORB
public static ORB getORB(java.lang.Object stub)
-
getTypeIds
public static java.lang.String[] getTypeIds(java.lang.Object stub)
-
connect
public static void connect(java.lang.Object stub, ORB orb) throws java.rmi.RemoteException- Throws:
java.rmi.RemoteException
-
isLocal
public static boolean isLocal(java.lang.Object stub)
-
request
public static OutputStream request(java.lang.Object stub, java.lang.String operation, boolean responseExpected)
-
-