org.zuena.guiceex.provider
クラス MapProvider<T extends Map>

java.lang.Object
  上位を拡張 org.zuena.guiceex.provider.CollectionProviderSupport<T>
      上位を拡張 org.zuena.guiceex.provider.MapProvider<T>
すべての実装されたインタフェース:
Provider

public class MapProvider<T extends Map>
extends CollectionProviderSupport<T>
implements Provider

guiceex-configの<map>の指定より、Mapインスタンスを作成して提供する Provider実装クラスです。

導入されたバージョン:
0.9.1

フィールドの概要
 
クラス org.zuena.guiceex.provider.CollectionProviderSupport から継承されたフィールド
entries, injector, type
 
コンストラクタの概要
MapProvider(List<Entry> entries, Class type)
           
 
メソッドの概要
static
<T extends Map>
Provider<T>
fromList(List<Entry> entries, Class<T> type)
          型パラメータTに応じたMapProviderインスタンスを作成するメソッドです。
protected  T initCollection(T collection)
          デフォルトのInjectorを使用してkeyvalue を取得し登録する。
 
クラス org.zuena.guiceex.provider.CollectionProviderSupport から継承されたメソッド
get
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース com.google.inject.Provider から継承されたメソッド
get
 

コンストラクタの詳細

MapProvider

public MapProvider(List<Entry> entries,
                   Class type)
メソッドの詳細

initCollection

protected T initCollection(T collection)
デフォルトのInjectorを使用してkeyvalue を取得し登録する。

定義:
クラス CollectionProviderSupport<T extends Map> 内の initCollection

fromList

public static <T extends Map> Provider<T> fromList(List<Entry> entries,
                                                   Class<T> type)
型パラメータTに応じたMapProviderインスタンスを作成するメソッドです。



Copyright © 2007 zuena.org AllRights Reserved.