|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectorg.omg.PortableServer.Servant
public abstract class Servant
定義本機 Servant 型別。在 Java 中,Servant 型別被映射到 Java org.omg.PortableServer.Servant 類別。它充當所有 POA servant 實作的基礎類別,提供許多可由應用開發人員調用的方法,以及可由 POA 本身調用(也可由使用者覆寫)以控制 servant 行為各方面的方法。基於 IDL to Java 規範。(CORBA V2.3.1) ptc/00-01-08.pdf。
| 建構子摘要 | |
|---|---|
Servant()
|
|
| 方法摘要 | |
|---|---|
abstract String[] |
_all_interfaces(POA poa,
byte[] objectId)
ORB 使用此操作從 servant 獲取完整的型別資訊。 |
POA |
_default_POA()
從與 servant 關聯的 ORB 實例返回根 POA。 |
Delegate |
_get_delegate()
獲取 PortableServer::Servant 特定於供應商的 ORB 實作。 |
Object |
_get_interface_def()
以 CORBA::Object 的形式返回 InterfaceDef 物件,該物件定義由 Servant 實作的 CORBA::Object 的運行時型別。 |
boolean |
_is_a(String repository_id)
查看指定的 repository_id 是否存在於 _all_interfaces() 返回的列表,或者其是否是一般 CORBA 物件的 repository_id。 |
boolean |
_non_existent()
檢查 Object 是否存在。 |
byte[] |
_object_id()
允許便捷地執行公共方法,等效於調用 PortableServer::Current::get_object_id。 |
ORB |
_orb()
返回當前與 Servant 關聯的 ORB 實例(便捷方法)。 |
POA |
_poa()
允許便捷地執行共用方法,等效於 PortableServer::Current:get_POA。 |
void |
_set_delegate(Delegate delegate)
此操作支持 Java ORB 可移植性介面,它向通過代理支持 ORB 可移植性的類別提供一個設置其委託的方法。 |
Object |
_this_object()
允許 servant 獲取為請求實作的目標 CORBA 物件的物件參考。 |
Object |
_this_object(ORB orb)
允許 servant 獲取為請求實作的目標 CORBA 物件的物件參考。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public Servant()
| 方法詳細資訊 |
|---|
public final Delegate _get_delegate()
PortableServer::Servant 特定於供應商的 ORB 實作。
_delegate,PortableServer::Servant 特定於供應商的 ORB 實作public final void _set_delegate(Delegate delegate)
delegate - PortableServer::Servant 特定於供應商的 ORB 實作。public final Object _this_object()
this_object Object 參考。public final Object _this_object(ORB orb)
orb - 與 servant 關聯的 ORB。
_this_object 參考。public final ORB _orb()
Servant 關聯的 ORB 實例(便捷方法)。
Servant 關聯的 ORB 實例 orb。public final POA _poa()
PortableServer::Current:get_POA。
poa。public final byte[] _object_id()
PortableServer::Current::get_object_id。
Object ID object_id。public POA _default_POA()
Servant 關聯的 POA default_POA。public boolean _is_a(String repository_id)
repository_id 是否存在於 _all_interfaces() 返回的列表,或者其是否是一般 CORBA 物件的 repository_id。
repository_id - 要在存儲資源庫列表中檢查(或根據通用 CORBA 物件的 id 檢查)的 repository_id。
is_a boolean 值,指示指定的 repository_id 是否在存儲列表中或者其是否與 CORBA 物件的相同。public boolean _non_existent()
Object 是否存在。Servant 提供 _non_existent() 的預設實作,該實作可通過派生的 servant 覆寫。
true;否則返回 false。public Object _get_interface_def()
CORBA::Object 的形式返回 InterfaceDef 物件,該物件定義由 Servant 實作的 CORBA::Object 的運行時型別。_get_interface_def 的調用者必須縮小 InterfaceDef 的結果以便使用。
如果預設行為無法滿足要求,則可以通過派生的 servant 覆寫此 _get_interface_def() 預設實作。根據 CORBA 2.3.1 規範第 11.3.1 小節中的定義,_get_interface_def() 的預設行為是使用靜態 servant 的最終派生介面或者從動態 servant 中得到的最終派生介面來獲取 InterfaceDef。實作 Servant 的 Delegate 必須支持此行為。
get_interface_def(CORBA::Object 形式的 InterfaceDef 物件),它定義由 Servant 實作的 CORBA::Object 的運行時型別。
public abstract String[] _all_interfaces(POA poa,
byte[] objectId)
poa - 與 servant 關聯的 POA。objectId - 對應於與此 servant 關聯的物件的 id。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。