クラス InfoProperties

java.lang.ObjectSE
org.springframework.boot.info.InfoProperties
実装されているすべてのインターフェース:
IterableSE<InfoProperties.Entry>
既知の直属サブクラス
BuildProperties, GitProperties

public class InfoProperties extends ObjectSE implements IterableSE<InfoProperties.Entry>
よく知られたキーの専用メソッドで非構造化データを公開するコンポーネントの基本クラス。
導入:
1.4.0
作成者:
Stephane Nicoll
  • コンストラクターの詳細

    • InfoProperties

      public InfoProperties(PropertiesSE entries)
      指定されたエントリでインスタンスを作成します。
      パラメーター:
      entries - 公開する情報
  • メソッドの詳細

    • get

      public @Nullable StringSE get(StringSE key)
      指定されたプロパティまたは null の値を返します。
      パラメーター:
      key - プロパティのキー
      戻り値:
      プロパティ値
    • getInstant

      public @Nullable InstantSE getInstant(StringSE key)
      値がエポック時間の有効な LongSE 表現でない場合は、指定されたプロパティの値を InstantSE または null として返します。
      パラメーター:
      key - プロパティのキー
      戻り値:
      プロパティ値
    • iterator

      public IteratorSE<InfoProperties.Entry> iterator()
      次で指定:
      インターフェース IterableSE<InfoProperties.Entry>iterator 
    • toPropertySource

      public PropertySource<?> toPropertySource()
      このインスタンスの PropertySource を返します。
      戻り値:
      PropertySource