Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » iiop » rmi » marshal » strategy » [javadoc | source]
org.jboss.iiop.rmi.marshal.strategy
public class: StubStrategy [javadoc | source]
java.lang.Object
   org.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 from org.jboss.iiop.rmi.marshal.strategy.StubStrategy Summary:
convertLocalRetval,   forMethod,   isDeclaredException,   isNonVoid,   readException,   readRetval,   writeParams
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.iiop.rmi.marshal.strategy.StubStrategy Detail:
 public Object convertLocalRetval(Object obj) 
    Converts the return value of a local invocation into the expected type. A conversion is needed if the return value is a remote interface (in this case PortableRemoteObject.narrow() must be called).
 public static StubStrategy forMethod(String[] paramTypes,
    String[] excepIds,
    String[] excepTypes,
    String retvalType,
    ClassLoader cl) 
    Returns an StubStrategy for a method, given descriptions of the method parameters, exceptions, and return value. Parameter and return value descriptions are "marshaller abbreviated names".
 public boolean isDeclaredException(Throwable t) 
    Checks if a given Throwable instance corresponds to an exception declared by this StubStrategy's method.
 public boolean isNonVoid() 
    Returns true if this StubStrategy's method is non void.
 public Exception readException(String id,
    InputStream in) 
    Unmarshals from an input stream an exception thrown by the method.
 public Object readRetval(InputStream in) 
    Unmarshals from an input stream the return value of the method.
 public  void writeParams(OutputStream out,
    Object[] params) 
    Marshals the sequence of method parameters into an output stream.