Class StubAdapter
java.lang.Object
com.sun.corba.ee.spi.presentation.rmi.StubAdapter
Provide 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
activateServant
(Servant servant) Use implicit activation to get an object reference for the servant.static Object
activateTie
(Tie tie) Given any Tie, return the corresponding object refernce, activating the Servant if necessary.static void
static Delegate
getDelegate
(Object stub) This also gets the delegate from a Servant by using Servant._this_object()static ORB
static String[]
getTypeIds
(Object stub) static boolean
static boolean
static boolean
isStubClass
(Class cls) static OutputStream
static void
setDelegate
(Object stub, Delegate delegate)
-
Field Details
-
wrapper
-
-
Constructor Details
-
StubAdapter
private StubAdapter()
-
-
Method Details
-
isStubClass
-
isStub
-
setDelegate
-
activateServant
Use implicit activation to get an object reference for the servant.- Parameters:
servant
- servant to activate- Returns:
- reference to servant
-
activateTie
Given any Tie, return the corresponding object refernce, activating the Servant if necessary.- Parameters:
tie
- tie to activate- Returns:
- reference to Tie
-
getDelegate
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
-
getTypeIds
-
connect
- Throws:
RemoteException
-
isLocal
-
request
-