## Uses of Class
org.omg.CORBA.portable.ServantObject

- Packages that use ServantObject
  Package | Description
  --- | ---
  org.omg.CORBA | Provides the mapping of the OMG CORBA APIs to the JavaTM programming language, including the class `ORB`, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB).
  org.omg.CORBA.portable | Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB.

- - ### Uses of ServantObject in org.omg.CORBA

    Methods in org.omg.CORBA that return ServantObject
    Modifier and Type | Method and Description
    --- | ---
    `ServantObject` | LocalObject.`_servant_preinvoke(String operation, Class expectedType)` Throws an `org.omg.CORBA.NO_IMPLEMENT` exception with the message "This is a locally constrained object." This method is the default implementation of the `org.omg.CORBA.Object` method.

    Methods in org.omg.CORBA with parameters of type ServantObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | LocalObject.`_servant_postinvoke(ServantObject servant)` Throws an `org.omg.CORBA.NO_IMPLEMENT` exception with the message "This is a locally constrained object." This method is the default implementation of the `org.omg.CORBA.Object` method.

  - ### Uses of ServantObject in org.omg.CORBA.portable

    Methods in org.omg.CORBA.portable that return ServantObject
    Modifier and Type | Method and Description
    --- | ---
    `ServantObject` | ObjectImpl.`_servant_preinvoke(String operation, Class expectedType)` Returns a Java reference to the local servant that should be used for sending a request for the method specified.
    `ServantObject` | Delegate.`servant_preinvoke(Object self, String operation, Class expectedType)` Returns a Java reference to the servant which should be used for this request.

    Methods in org.omg.CORBA.portable with parameters of type ServantObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | ObjectImpl.`_servant_postinvoke(ServantObject servant)` Is called by the local stub after it has invoked an operation on the local servant that was previously retrieved from a call to the method `_servant_preinvoke`.
    `void` | Delegate.`servant_postinvoke(Object self, ServantObject servant)` servant_postinvoke() is invoked by the local stub after the operation has been invoked on the local servant.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.