|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.beans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider
protected class BeanContextServicesSupport.BCSSProxyServiceProvider
| 方法摘要 | |
|---|---|
Iterator |
getCurrentServiceSelectors(BeanContextServices bcs,
Class serviceClass)
由 BeanContextServices 調用,此方法獲得指定服務的當前服務選擇器。 |
Object |
getService(BeanContextServices bcs,
Object requestor,
Class serviceClass,
Object serviceSelector)
由 BeanContextServices 調用,此方法請求來自此 BeanContextServiceProvider 服務的一個實例。 |
void |
releaseService(BeanContextServices bcs,
Object requestor,
Object service)
由 BeanContextServices 調用,此方法釋放一個對特定服務的巢狀 BeanContextChild(或與 BeanContextChild 關聯的任意物件)的參考。 |
void |
serviceRevoked(BeanContextServiceRevokedEvent bcsre)
指定服務已被取消。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法詳細資訊 |
|---|
public Object getService(BeanContextServices bcs,
Object requestor,
Class serviceClass,
Object serviceSelector)
BeanContextServiceProvider 複製的描述BeanContextServices 調用,此方法請求來自此 BeanContextServiceProvider 服務的一個實例。
BeanContextServiceProvider 中的 getServicebcs - 與此特定請求相關聯的 BeanContextServices。此參數允許 BeanContextServiceProvider 區別來自多個源的服務請求。requestor - 請求服務的物件serviceClass - 請求的服務serviceSelector - 用於特定服務的與服務有關的參數,如果不適用,則為 null。
public void releaseService(BeanContextServices bcs,
Object requestor,
Object service)
BeanContextServiceProvider 複製的描述BeanContextServices 調用,此方法釋放一個對特定服務的巢狀 BeanContextChild(或與 BeanContextChild 關聯的任意物件)的參考。
BeanContextServiceProvider 中的 releaseServicebcs - 與此特定釋放請求相關聯的 BeanContextServicesrequestor - 請求釋放服務的物件service - 要釋放的服務
public Iterator getCurrentServiceSelectors(BeanContextServices bcs,
Class serviceClass)
BeanContextServiceProvider 複製的描述BeanContextServices 調用,此方法獲得指定服務的當前服務選擇器。服務選擇器是一種特定於服務的參數,它的典型範例可能包括:用於服務實作類別的建構子的參數、特定服務的屬性值或已存在實作的映射中的鍵。
BeanContextServiceProvider 中的 getCurrentServiceSelectorsbcs - 此請求的 BeanContextServicesserviceClass - 指定的服務
public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
BeanContextServiceRevokedListener 複製的描述
BeanContextServiceRevokedListener 中的 serviceRevokedbcsre - 由此偵聽器接收的 BeanContextServiceRevokedEvent。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。