public class DynamicMethodMarshallerImpl extends Object implements DynamicMethodMarshaller
Modifier and Type | Class and Description |
---|---|
static interface |
DynamicMethodMarshallerImpl.ReaderWriter |
Constructor and Description |
---|
DynamicMethodMarshallerImpl(Method method) |
Modifier and Type | Method and Description |
---|---|
Object[] |
copyArguments(Object[] args,
ORB orb)
Copy the arguments as needed for this particular method.
|
Object |
copyResult(Object result,
ORB orb)
Copy the result as needed for this particular method.
|
Method |
getMethod()
Returns the method used to create this DynamicMethodMarshaller.
|
boolean |
isDeclaredException(Throwable thr)
Returns true iff thr's class is a declared exception (or a subclass of
a declared exception) for this DynamicMethodMarshaller's method.
|
static DynamicMethodMarshallerImpl.ReaderWriter |
makeReaderWriter(Class cls) |
Object[] |
readArguments(InputStream is)
Read the arguments for this method from the InputStream.
|
Exception |
readException(ApplicationException ae)
Reads an exception ID and the corresponding exception from
the input stream.
|
Object |
readResult(InputStream is)
Read the result from the InputStream.
|
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.
|
public DynamicMethodMarshallerImpl(Method method)
public static DynamicMethodMarshallerImpl.ReaderWriter makeReaderWriter(Class cls)
public Method getMethod()
DynamicMethodMarshaller
getMethod
in interface DynamicMethodMarshaller
public Object[] copyArguments(Object[] args, ORB orb) throws RemoteException
DynamicMethodMarshaller
copyArguments
in interface DynamicMethodMarshaller
RemoteException
public Object[] readArguments(InputStream is)
DynamicMethodMarshaller
readArguments
in interface DynamicMethodMarshaller
public void writeArguments(OutputStream os, Object[] args)
DynamicMethodMarshaller
writeArguments
in interface DynamicMethodMarshaller
public Object copyResult(Object result, ORB orb) throws RemoteException
DynamicMethodMarshaller
copyResult
in interface DynamicMethodMarshaller
RemoteException
public Object readResult(InputStream is)
DynamicMethodMarshaller
readResult
in interface DynamicMethodMarshaller
public void writeResult(OutputStream os, Object result)
DynamicMethodMarshaller
writeResult
in interface DynamicMethodMarshaller
public boolean isDeclaredException(Throwable thr)
DynamicMethodMarshaller
isDeclaredException
in interface DynamicMethodMarshaller
public void writeException(OutputStream os, Exception ex)
DynamicMethodMarshaller
writeException
in interface DynamicMethodMarshaller
public Exception readException(ApplicationException ae)
DynamicMethodMarshaller
readException
in interface DynamicMethodMarshaller
Copyright © 2021 JBoss by Red Hat. All rights reserved.