java.lang.Objectorg.omg.PortableServer.Servant
public abstract class Servant
Defines the native Servant type. In Java, the
Servant type is mapped to the Java
org.omg.PortableServer.Servant class.
It serves as the base class for all POA servant
implementations and provides a number of methods that may
be invoked by the application programmer, as well as methods
which are invoked by the POA itself and may be overridden by
the user to control aspects of servant behavior.
Based on IDL to Java spec. (CORBA V2.3.1) ptc/00-01-08.pdf.
| Constructor Summary | |
|---|---|
Servant()
|
|
| Method Summary | |
|---|---|
abstract String[] |
_all_interfaces(POA poa,
byte[] objectId)
Used by the ORB to obtain complete type information from the servant. |
POA |
_default_POA()
Returns the root POA from the ORB instance associated with the servant. |
Delegate |
_get_delegate()
Gets the ORB vendor-specific implementation of PortableServer::Servant. |
Object |
_get_interface_def()
Returns an InterfaceDef object as a
CORBA::Object that defines the runtime type of the
CORBA::Object implemented by the Servant. |
boolean |
_is_a(String repository_id)
Checks to see if the specified repository_id is present
on the list returned by _all_interfaces() or is the
repository_id for the generic CORBA Object. |
boolean |
_non_existent()
Checks for the existence of an Object. |
byte[] |
_object_id()
Allows easy execution of common methods, equivalent to calling PortableServer::Current::get_object_id. |
ORB |
_orb()
Returns the instance of the ORB currently associated with the Servant (convenience method). |
POA |
_poa()
Allows easy execution of common methods, equivalent to PortableServer::Current:get_POA. |
void |
_set_delegate(Delegate delegate)
Supports the Java ORB portability interfaces by providing a method for classes that support ORB portability through delegation to set their delegate. |
Object |
_this_object()
Allows the servant to obtain the object reference for the target CORBA object it is incarnating for that request. |
Object |
_this_object(ORB orb)
Allows the servant to obtain the object reference for the target CORBA Object it is incarnating for that request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Servant()
| Method Detail |
|---|
public final Delegate _get_delegate()
PortableServer::Servant.
_delegate the ORB vendor-specific
implementation of PortableServer::Servant.public final void _set_delegate(Delegate delegate)
delegate - ORB vendor-specific implementation of
the PortableServer::Servant.public final Object _this_object()
this_object Object reference
associated with the request.public final Object _this_object(ORB orb)
orb - ORB with which the servant is associated.
_this_object reference associated with the request.public final ORB _orb()
Servant (convenience method).
orb the instance of the ORB currently
associated with the Servant.public final POA _poa()
PortableServer::Current:get_POA.
poa POA associated with the servant.public final byte[] _object_id()
PortableServer::Current::get_object_id.
object_id the Object ID associated
with this servant.public POA _default_POA()
default_POA the POA associated with the
Servant.public boolean _is_a(String repository_id)
repository_id is present
on the list returned by _all_interfaces() or is the
repository_id for the generic CORBA Object.
repository_id - the repository_id
to be checked in the repository list or against the id
of generic CORBA objects.
is_a boolean indicating whether the specified
repository_id is
in the repository list or is same as a generic CORBA
object.public boolean _non_existent()
Object.
The Servant provides a default implementation of
_non_existent() that can be overridden by derived servants.
non_existent true if that object does
not exist, false otherwise.public Object _get_interface_def()
InterfaceDef object as a
CORBA::Object that defines the runtime type of the
CORBA::Object implemented by the Servant.
The invoker of _get_interface_def
must narrow the result to an InterfaceDef in order
to use it.
This default implementation of _get_interface_def()
can be overridden
by derived servants if the default behavior is not adequate.
As defined in the CORBA 2.3.1 specification, section 11.3.1, the
default behavior of _get_interface_def() is to use
the most derived
interface of a static servant or the most derived interface retrieved
from a dynamic servant to obtain the InterfaceDef.
This behavior must
be supported by the Delegate that implements the
Servant.
get_interface_def an InterfaceDef
object as a
CORBA::Object that defines the runtime type of the
CORBA::Object implemented by the Servant.public abstract String[] _all_interfaces(POA poa, byte[] objectId)
poa - POA with which the servant is associated.objectId - is the id corresponding to the object
associated with this servant.
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)