クラス InfoPropertiesInfoContributor<T extends InfoProperties>

java.lang.ObjectSE
org.springframework.boot.actuate.info.InfoPropertiesInfoContributor<T>
型パラメーター:
T - 公開する InfoProperties の型
実装されたすべてのインターフェース:
InfoContributor
既知の直属サブクラス
BuildInfoContributorGitInfoContributor

public abstract class InfoPropertiesInfoContributor<T extends InfoProperties> extends ObjectSE implements InfoContributor
InfoProperties を公開するためのベース InfoContributor
導入:
1.4.0
作成者:
Stephane Nicoll, Madhura Bhave
  • コンストラクターの詳細

  • メソッドの詳細

    • getProperties

      protected final T getProperties()
      このインスタンスが管理するプロパティを返します。
      戻り値:
      情報プロパティ
    • getMode

      protected final InfoPropertiesInfoContributor.Mode getMode()
      コンテンツを公開するために使用する必要があるモードを返します。
      戻り値:
      モード
    • toSimplePropertySource

      protected abstract PropertySource<?> toSimplePropertySource()
      SIMPLE モードの PropertySource を返します。
      戻り値:
      単純なモデルのプロパティソース
      関連事項:
    • generateContent

      protected MapSE<StringSE,ObjectSE> generateContent()
      コンテンツを抽出して、情報エンドポイントに貢献します。
      戻り値:
      公開するコンテンツ
      関連事項:
    • extractContent

      protected MapSE<StringSE,ObjectSE> extractContent(PropertySource<?> propertySource)
      指定された PropertySource に基づいて生のコンテンツを抽出します。
      パラメーター:
      propertySource - 使用するプロパティソース
      戻り値:
      生のコンテンツ
    • postProcessContent

      protected void postProcessContent(MapSE<StringSE,ObjectSE> content)
      公開するコンテンツを後処理します。要素は追加、変更、削除できます。
      パラメーター:
      content - 公開するコンテンツ
    • toPropertySource

      protected PropertySource<?> toPropertySource()
      選択した InfoPropertiesInfoContributor.Mode に基づいて使用する PropertySource を返します。
      戻り値:
      プロパティソース
    • copyIfSet

      protected void copyIfSet(PropertiesSE target, StringSE key)
      指定されたキーが設定されている場合は、ターゲット PropertiesSE にコピーします。
      パラメーター:
      target - 更新するターゲットプロパティ
      key - キー
    • replaceValue

      protected void replaceValue(MapSE<StringSE,ObjectSE> content, StringSE key, ObjectSE value)
      値が null でない場合は、指定されたキーの value を置き換えます。
      パラメーター:
      content - 公開するコンテンツ
      key - 置き換えるプロパティ
      value - 新しい価値
    • getNestedMap

      protected MapSE<StringSE,ObjectSE> getNestedMap(MapSE<StringSE,ObjectSE> map, StringSE key)
      指定されたマップにネストされたマップを返すか、指定されたマップにキーのマッピングが含まれていない場合は空のマップを返します。
      パラメーター:
      map - コンテンツ
      key - ネストされたマップのキー
      戻り値:
      ネストされたマップ