Class StringListComponentFactory

java.lang.Object
nablarch.core.repository.di.config.StringListComponentFactory
All Implemented Interfaces:
ComponentFactory<List<String>>

public class StringListComponentFactory extends Object implements ComponentFactory<List<String>>
半角カンマ () 区切りの文字列を List<String> のコンポーネントとして 生成する ComponentFactory の実装。

このクラスは、 values に設定された文字列を半角カンマ (",") で分割し、 各要素を String.trim() でトリムした結果を List<String> のコンポーネントとして 生成します。

valuesnull の場合は、空のリストが生成されます。

  • Constructor Details

    • StringListComponentFactory

      public StringListComponentFactory()
  • Method Details

    • setValues

      public void setValues(String values)
      このファクトリが生成する List<String> の各要素を 半角カンマで連結した文字列を設定する。
      Parameters:
      values - 半角カンマ区切りの文字列
    • createObject

      public List<String> createObject()
      Description copied from interface: ComponentFactory
      オブジェクトを作成する。
      Specified by:
      createObject in interface ComponentFactory<List<String>>
      Returns:
      作成したオブジェクト