Class DynamicMethodMarshallerImpl
java.lang.Object
com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl
- All Implemented Interfaces:
DynamicMethodMarshaller
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static DynamicMethodMarshallerImpl.ReaderWriter
private static DynamicMethodMarshallerImpl.ReaderWriter
private DynamicMethodMarshallerImpl.ReaderWriter[]
private static DynamicMethodMarshallerImpl.ReaderWriter
private static DynamicMethodMarshallerImpl.ReaderWriter
private static DynamicMethodMarshallerImpl.ReaderWriter
private static DynamicMethodMarshallerImpl.ReaderWriter
private static DynamicMethodMarshallerImpl.ReaderWriter
private ExceptionHandler
private static DynamicMethodMarshallerImpl.ReaderWriter
private boolean
private boolean
private static DynamicMethodMarshallerImpl.ReaderWriter
private static DynamicMethodMarshallerImpl.ReaderWriter
private Method
private boolean
private boolean
private static DynamicMethodMarshallerImpl.ReaderWriter
private static final ORBUtilSystemException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
Object[]
copyArguments
(Object[] args, ORB orb) Copy the arguments as needed for this particular method.copyResult
(Object result, ORB orb) Copy the result as needed for this particular method.Returns the method used to create this DynamicMethodMarshaller.private static boolean
isAbstractInterface
(Class cls) private static boolean
isAnyClass
(Class cls) boolean
Returns true iff thr's class is a declared exception (or a subclass of a declared exception) for this DynamicMethodMarshaller's method.makeReaderWriter
(Class cls) Object[]
Read the arguments for this method from the InputStream.Reads an exception ID and the corresponding exception from the input stream.Read the result from the InputStream.private static boolean
throwsRemote
(Method method) void
writeArguments
(OutputStream os, Object[] args) Write arguments for this method to the OutputStream.void
writeException
(OutputStream os, Exception ex) Write the repository ID of the exception and the value of the exception to the OutputStream.void
writeResult
(OutputStream os, Object result) Write the result to the OutputStream.
-
Field Details
-
method
-
ehandler
-
hasArguments
private boolean hasArguments -
hasVoidResult
private boolean hasVoidResult -
needsArgumentCopy
private boolean needsArgumentCopy -
needsResultCopy
private boolean needsResultCopy -
argRWs
-
resultRW
-
wrapper
-
booleanRW
-
byteRW
-
charRW
-
shortRW
-
intRW
-
longRW
-
floatRW
-
doubleRW
-
corbaObjectRW
-
anyRW
-
abstractInterfaceRW
-
-
Constructor Details
-
DynamicMethodMarshallerImpl
-
-
Method Details
-
isAnyClass
-
isAbstractInterface
-
allMethodsThrowRemoteException
-
throwsRemote
-
makeReaderWriter
-
getMethod
Description copied from interface:DynamicMethodMarshaller
Returns the method used to create this DynamicMethodMarshaller.- Specified by:
getMethod
in interfaceDynamicMethodMarshaller
- Returns:
- the method used
-
copyArguments
Description copied from interface:DynamicMethodMarshaller
Copy the arguments as needed for this particular method. Can be optimized so that as little copying as possible is performed.- Specified by:
copyArguments
in interfaceDynamicMethodMarshaller
- Parameters:
args
- arguments to copyorb
- ORB to use- Returns:
- a copy of the arguments
- Throws:
RemoteException
- if there is a remote error
-
readArguments
Description copied from interface:DynamicMethodMarshaller
Read the arguments for this method from the InputStream. Returns null if there are no arguments.- Specified by:
readArguments
in interfaceDynamicMethodMarshaller
- Parameters:
is
- stream to read arguments from- Returns:
- array of arguments
-
writeArguments
Description copied from interface:DynamicMethodMarshaller
Write arguments for this method to the OutputStream. Does nothing if there are no arguments.- Specified by:
writeArguments
in interfaceDynamicMethodMarshaller
- Parameters:
os
- stream to write toargs
- arguments to write
-
copyResult
Description copied from interface:DynamicMethodMarshaller
Copy the result as needed for this particular method. Can be optimized so that as little copying as possible is performed.- Specified by:
copyResult
in interfaceDynamicMethodMarshaller
- Parameters:
result
- Object to copyorb
- ORB to use for copying- Returns:
- copied object
- Throws:
RemoteException
- if there is an error with the ORB
-
readResult
Description copied from interface:DynamicMethodMarshaller
Read the result from the InputStream. Returns null if the result type is null.- Specified by:
readResult
in interfaceDynamicMethodMarshaller
- Parameters:
is
- stream to read from- Returns:
- result
-
writeResult
Description copied from interface:DynamicMethodMarshaller
Write the result to the OutputStream. Does nothing if the result type is null.- Specified by:
writeResult
in interfaceDynamicMethodMarshaller
- Parameters:
os
- stream to write toresult
- result to write to stream
-
isDeclaredException
Description copied from interface:DynamicMethodMarshaller
Returns true iff thr's class is a declared exception (or a subclass of a declared exception) for this DynamicMethodMarshaller's method.- Specified by:
isDeclaredException
in interfaceDynamicMethodMarshaller
- Parameters:
thr
- throwable to checl- Returns:
- if it is a declared (non-runtime) exception
-
writeException
Description copied from interface:DynamicMethodMarshaller
Write the repository ID of the exception and the value of the exception to the OutputStream. ex should be a declared exception for this DynamicMethodMarshaller's method.- Specified by:
writeException
in interfaceDynamicMethodMarshaller
- Parameters:
os
- stream to write toex
- exception to write
-
readException
Description copied from interface:DynamicMethodMarshaller
Reads an exception ID and the corresponding exception from the input stream. This should be an exception declared in this method.- Specified by:
readException
in interfaceDynamicMethodMarshaller
- Parameters:
ae
- id of exception to read- Returns:
- read exception
-