|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.cubby.plugin.AbstractPlugin
org.seasar.cubby.plugins.BinderPlugin
public class BinderPlugin
プログラムからサービスを登録できるプラグインです。
プログラムからサービスとプロバイダをひもづけたい場合に使用してください。
| 入れ子のクラスの概要 | |
|---|---|
class |
BinderPlugin.Binder<S extends Provider>
サービスをプロバイダに紐づけるためのクラスです。 |
| コンストラクタの概要 | |
|---|---|
BinderPlugin()
|
|
| メソッドの概要 | ||
|---|---|---|
|
bind(Class<S> service)
ServiceLoader からのインスタンス取得を置換するため、指定されたサービスのバインダーを返します。 |
|
|
getProvider(Class<S> service)
このプラグインが提供するサービスプロバイダを取得します。 |
|
Set<Class<? extends Provider>> |
getSupportedServices()
このプラグインが提供するサービスプロバイダのセットを返します。 |
|
| クラス org.seasar.cubby.plugin.AbstractPlugin から継承されたメソッド |
|---|
destroy, initialize, invokeAction, invokeActionResult, invokeRequestProcessing, invokeRouting, invokeValidation, isSupport, ready, support |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public BinderPlugin()
| メソッドの詳細 |
|---|
public <S extends Provider> S getProvider(Class<S> service)
このプラグインが指定されたサービスを提供しない場合は null を返します。
Plugin 内の getProviderAbstractPlugin 内の getProviderS - サービスの型service - サービス
public Set<Class<? extends Provider>> getSupportedServices()
Plugin 内の getSupportedServicesAbstractPlugin 内の getSupportedServicespublic <S extends Provider> BinderPlugin.Binder<S> bind(Class<S> service)
ServiceLoader からのインスタンス取得を置換するため、指定されたサービスのバインダーを返します。
テストで使用することを想定しています。
S - サービスの型service - サービス
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||