Class StringListComponentFactory
java.lang.Object
nablarch.core.repository.di.config.StringListComponentFactory
- All Implemented Interfaces:
ComponentFactory<List<String>>
半角カンマ () 区切りの文字列を
List<String>
のコンポーネントとして
生成する ComponentFactory
の実装。
このクラスは、 values
に設定された文字列を半角カンマ (","
) で分割し、
各要素を String.trim()
でトリムした結果を List<String>
のコンポーネントとして
生成します。
values
が null
の場合は、空のリストが生成されます。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionオブジェクトを作成する。void
このファクトリが生成するList<String>
の各要素を 半角カンマで連結した文字列を設定する。
-
Constructor Details
-
StringListComponentFactory
public StringListComponentFactory()
-
-
Method Details
-
setValues
このファクトリが生成するList<String>
の各要素を 半角カンマで連結した文字列を設定する。- Parameters:
values
- 半角カンマ区切りの文字列
-
createObject
Description copied from interface:ComponentFactory
オブジェクトを作成する。- Specified by:
createObject
in interfaceComponentFactory<List<String>>
- Returns:
- 作成したオブジェクト
-