Class SkeletonStrategy


  • public class SkeletonStrategy
    extends Object
    A SkeletonStrategy for a given method knows how to unmarshalthe sequence of method parameters from a CDR input stream, how to marshal into a CDR output stream the return value of the method, and how to marshal into a CDR output stream any exception thrown by the method.
    Version:
    $Revision: 81018 $
    Author:
    Francisco Reverbel
    • Constructor Detail

      • SkeletonStrategy

        public SkeletonStrategy​(Method m)
    • Method Detail

      • readParams

        public Object[] readParams​(org.omg.CORBA_2_3.portable.InputStream in)
        Unmarshals the sequence of method parameters from an input stream.
        Parameters:
        in - a CDR input stream
        Returns:
        an object array with the parameters.
      • getMethod

        public Method getMethod()
        Returns this SkeletonStrategy's method.
      • isNonVoid

        public boolean isNonVoid()
        Returns true if this SkeletonStrategy's method is non void.
      • writeRetval

        public void writeRetval​(org.omg.CORBA_2_3.portable.OutputStream out,
                                Object retVal)
        Marshals into an output stream the return value of the method.
        Parameters:
        out - a CDR output stream
        retVal - the value to be written.
      • writeException

        public void writeException​(org.omg.CORBA_2_3.portable.OutputStream out,
                                   Throwable e)
        Marshals into an output stream an exception thrown by the method.
        Parameters:
        out - a CDR output stream
        e - the exception to be written.