Class CodegenStubBase
- java.lang.Object
-
- org.omg.CORBA.portable.ObjectImpl
-
- org.omg.CORBA_2_3.portable.ObjectImpl
-
- javax.rmi.CORBA.Stub
-
- com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase
-
- All Implemented Interfaces:
java.io.Serializable,Object
public class CodegenStubBase extends Stub
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private PresentationManager.ClassDataclassDataprivate java.lang.reflect.InvocationHandlerhandlerprivate java.lang.reflect.Method[]methodsprivate static java.lang.reflect.MethodsetDefaultDelegateMethodprivate java.lang.String[]typeIdsprivate static ORBUtilSystemExceptionwrapper
-
Constructor Summary
Constructors Constructor Description CodegenStubBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]_ids()Retrieves a string array containing the repository identifiers supported by thisObjectImplobject.private static StubDelegateImplgetStubDelegateImpl(Object stub)private static StubDelegateImplgetStubDelegateImplField(Object stub)voidinitialize(PresentationManager.ClassData classData, java.lang.reflect.InvocationHandler handler)Must be called to complete the initialization of the stub.protected java.lang.Objectinvoke(int methodNumber, java.lang.Object[] args)private voidreadObject(java.io.ObjectInputStream stream)private java.lang.ObjectreadResolve()protected java.lang.ObjectselfAsBaseClass()private static voidsetDefaultDelegate(Object stub)-
Methods inherited from class org.omg.CORBA_2_3.portable.ObjectImpl
_get_codebase
-
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override
-
-
-
-
Field Detail
-
typeIds
private transient java.lang.String[] typeIds
-
methods
private transient java.lang.reflect.Method[] methods
-
classData
private transient PresentationManager.ClassData classData
-
handler
private transient java.lang.reflect.InvocationHandler handler
-
wrapper
private static final ORBUtilSystemException wrapper
-
setDefaultDelegateMethod
private static java.lang.reflect.Method setDefaultDelegateMethod
-
-
Method Detail
-
readResolve
private java.lang.Object readResolve() throws java.io.ObjectStreamException- Throws:
java.io.ObjectStreamException
-
getStubDelegateImpl
private static StubDelegateImpl getStubDelegateImpl(Object stub)
-
getStubDelegateImplField
private static StubDelegateImpl getStubDelegateImplField(Object stub)
-
setDefaultDelegate
private static void setDefaultDelegate(Object stub)
-
readObject
private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
_ids
public java.lang.String[] _ids()
Description copied from class:ObjectImplRetrieves a string array containing the repository identifiers supported by thisObjectImplobject. For example, for a stub, this method returns information about all the interfaces supported by the stub.- Specified by:
_idsin classObjectImpl- Returns:
- the array of all repository identifiers supported by this
ObjectImplinstance
-
initialize
public void initialize(PresentationManager.ClassData classData, java.lang.reflect.InvocationHandler handler)
Must be called to complete the initialization of the stub. Note that we have mutual dependence between the InvocationHandler and the Stub: the InvocationHandler needs the stub in order to get the delegate, and the Stub needs the InvocationHandler to perform an invocation. We resolve this dependency by constructing the Stub first, using the stub to construct the InvocationHandler, and then completing the initialization of the Stub by calling initialize.- Parameters:
classData- ClassData for codegenhandler- InvocationHandler to use
-
selfAsBaseClass
protected java.lang.Object selfAsBaseClass()
-
invoke
protected java.lang.Object invoke(int methodNumber, java.lang.Object[] args) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-