Class ReflectiveTie

java.lang.Object
org.omg.PortableServer.Servant
com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie
All Implemented Interfaces:
Tie, InvokeHandler

public final class ReflectiveTie extends Servant implements Tie
  • Field Details

  • Constructor Details

  • Method Details

    • _all_interfaces

      public String[] _all_interfaces(POA poa, byte[] objectId)
      Description copied from class: Servant
      Used by the ORB to obtain complete type information from the servant.
      Specified by:
      _all_interfaces in class Servant
      Parameters:
      poa - POA with which the servant is associated.
      objectId - is the id corresponding to the object associated with this servant.
      Returns:
      list of type information for the object.
    • setTarget

      public void setTarget(Remote target)
      Description copied from interface: Tie
      Called by Util.registerTarget(javax.rmi.CORBA.Tie, java.rmi.Remote) to set the target for this tie.
      Specified by:
      setTarget in interface Tie
      Parameters:
      target - the object to use as the target for this tie.
    • getTarget

      public Remote getTarget()
      Description copied from interface: Tie
      Returns the target for this tie.
      Specified by:
      getTarget in interface Tie
      Returns:
      the target.
    • thisObject

      public Object thisObject()
      Description copied from interface: Tie
      Returns an object reference for the target object represented by this tie.
      Specified by:
      thisObject in interface Tie
      Returns:
      an object reference for the target object.
    • deactivate

      public void deactivate()
      Description copied from interface: Tie
      Deactivates the target object represented by this tie.
      Specified by:
      deactivate in interface Tie
    • orb

      public ORB orb()
      Description copied from interface: Tie
      Returns the ORB for this tie.
      Specified by:
      orb in interface Tie
      Returns:
      the ORB.
    • orb

      public void orb(ORB orb)
      Description copied from interface: Tie
      Sets the ORB for this tie.
      Specified by:
      orb in interface Tie
      Parameters:
      orb - the ORB.
    • dispatchToMethod

      public Object dispatchToMethod(Method javaMethod, Remote target, Object[] args) throws InvocationTargetException
      Throws:
      InvocationTargetException
    • _invoke

      public OutputStream _invoke(String method, InputStream _in, ResponseHandler reply)
      Description copied from interface: InvokeHandler
      Invoked by the ORB to dispatch a request to the servant. ORB passes the method name, an InputStream containing the marshalled arguments, and a ResponseHandler which the servant uses to construct a proper reply. Only CORBA SystemException may be thrown by this method. The method must return an OutputStream created by the ResponseHandler which contains the marshalled reply. A servant must not retain a reference to the ResponseHandler beyond the lifetime of a method invocation. Servant behaviour is defined as follows:

      1. Determine correct method, and unmarshal parameters from InputStream.

      2. Invoke method implementation.

      3. If no user exception, create a normal reply using ResponseHandler.

      4. If user exception occurred, create exception reply using ResponseHandler.

      5. Marshal reply into OutputStream returned by ResponseHandler.

      6. Return OutputStream to ORB.

      Specified by:
      _invoke in interface InvokeHandler
      Parameters:
      method - The method name.
      _in - The InputStream containing the marshalled arguments.
      reply - The ResponseHandler which the servant uses to construct a proper reply
      Returns:
      The OutputStream created by the ResponseHandler which contains the marshalled reply