|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.iiop.rmi.marshal.strategy.StubStrategy
An StubStrategy
for a given method knows how to marshal
the sequence of method parameters into a CDR output stream, how to unmarshal
from a CDR input stream the return value of the method, and how to unmarshal
from a CDR input stream an application exception thrown by the method.
Method Summary | |
java.lang.Object |
convertLocalRetval(java.lang.Object obj)
Converts the return value of a local invocation into the expected type. |
static StubStrategy (src) |
forMethod(java.lang.String[] paramTypes,
java.lang.String[] excepIds,
java.lang.String[] excepTypes,
java.lang.String retvalType,
java.lang.ClassLoader cl)
Returns an StubStrategy for a method, given descriptions
of the method parameters, exceptions, and return value. |
boolean |
isDeclaredException(java.lang.Throwable t)
Checks if a given Throwable instance corresponds to an
exception declared by this StubStrategy 's method. |
boolean |
isNonVoid()
Returns true if this StubStrategy 's method is non void. |
java.lang.Exception |
readException(java.lang.String id,
org.omg.CORBA_2_3.portable.InputStream in)
Unmarshals from an input stream an exception thrown by the method. |
java.lang.Object |
readRetval(org.omg.CORBA_2_3.portable.InputStream in)
Unmarshals from an input stream the return value of the method. |
void |
writeParams(org.omg.CORBA_2_3.portable.OutputStream out,
java.lang.Object[] params)
Marshals the sequence of method parameters into an output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static StubStrategy (src) forMethod(java.lang.String[] paramTypes, java.lang.String[] excepIds, java.lang.String[] excepTypes, java.lang.String retvalType, java.lang.ClassLoader cl)
StubStrategy
for a method, given descriptions
of the method parameters, exceptions, and return value. Parameter and
return value descriptions are "marshaller abbreviated names".
paramTypes
- a string array with marshaller abbreviated names for
the method parametersexcepIds
- a string array with the CORBA repository ids of the
exceptions thrown by the methodexcepTypes
- a string array with the Java class names of the
exceptions thrown by the methodretvalType
- marshaller abbreaviated name for the return value of
the methodcl
- a ClassLoader
to load value classes
(if null, the current thread's context class loader
will be used)
StubStrategy
for the operation with the
parameters, exceptions, and return value specified.org.jboss.iiop.marshal.CDRStream#abbrevFor(Class clz)
public void writeParams(org.omg.CORBA_2_3.portable.OutputStream out, java.lang.Object[] params)
out
- a CDR output streamparams
- an object array with the parameters.public boolean isNonVoid()
StubStrategy
's method is non void.
public java.lang.Object readRetval(org.omg.CORBA_2_3.portable.InputStream in)
in
- a CDR input stream
public java.lang.Exception readException(java.lang.String id, org.omg.CORBA_2_3.portable.InputStream in)
id
- the repository id of the exception to unmarshalin
- a CDR input stream
public boolean isDeclaredException(java.lang.Throwable t)
Throwable
instance corresponds to an
exception declared by this StubStrategy
's method.
t
- an exception class
t
is an instance of any of the
exceptions declared by this StubStrategy
's
method, false otherwise.public java.lang.Object convertLocalRetval(java.lang.Object obj)
PortableRemoteObject.narrow()
must be called).
obj
- the return value to be converted
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |