T
- 公開する InfoProperties
の型 public abstract class InfoPropertiesInfoContributor<T extends InfoProperties> extends ObjectSE implements InfoContributor
InfoProperties
を公開するためのベース InfoContributor
。修飾子と型 | クラスと説明 |
---|---|
static class | InfoPropertiesInfoContributor.Mode プロパティを公開する方法を定義します。 |
修飾子 | コンストラクターと説明 |
---|---|
protected | InfoPropertiesInfoContributor(T properties, InfoPropertiesInfoContributor.Mode mode) |
修飾子と型 | メソッドと説明 |
---|---|
protected void | copyIfSet(PropertiesSE target, StringSE key) 指定されたキーが設定されている場合は、ターゲット Properties SE にコピーします。 |
protected MapSE<StringSE, ObjectSE> | extractContent(PropertySource<?> propertySource) 指定された PropertySource に基づいて生のコンテンツを抽出します。 |
protected MapSE<StringSE, ObjectSE> | generateContent() コンテンツを抽出して、情報エンドポイントに貢献します。 |
protected InfoPropertiesInfoContributor.Mode | getMode() コンテンツを公開するために使用する必要があるモードを返します。 |
protected MapSE<StringSE, ObjectSE> | getNestedMap(MapSE<StringSE, ObjectSE> map, StringSE key) 指定されたマップにネストされたマップを返すか、指定されたマップにキーのマッピングが含まれていない場合は空のマップを返します。 |
protected T | getProperties() このインスタンスが管理するプロパティを返します。 |
protected void | postProcessContent(MapSE<StringSE, ObjectSE> content) 公開するコンテンツを後処理します。 |
protected void | replaceValue(MapSE<StringSE, ObjectSE> content, StringSE key, ObjectSE value) 値が null でない場合は、指定されたキーの value を置き換えます。 |
protected PropertySource<?> | toPropertySource() 選択した InfoPropertiesInfoContributor.Mode に基づいて使用する PropertySource を返します。 |
protected abstract PropertySource<?> | toSimplePropertySource() SIMPLE モードの PropertySource を返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
contribute
protected InfoPropertiesInfoContributor(T properties, InfoPropertiesInfoContributor.Mode mode)
protected final T getProperties()
protected final InfoPropertiesInfoContributor.Mode getMode()
protected abstract PropertySource<?> toSimplePropertySource()
SIMPLE
モードの PropertySource
を返します。toPropertySource()
protected MapSE<StringSE,ObjectSE> generateContent()
extractContent(PropertySource)
, postProcessContent(Map)
protected MapSE<StringSE,ObjectSE> extractContent(PropertySource<?> propertySource)
PropertySource
に基づいて生のコンテンツを抽出します。propertySource
- 使用するプロパティソース protected void postProcessContent(MapSE<StringSE,ObjectSE> content)
content
- 公開するコンテンツ protected PropertySource<?> toPropertySource()
InfoPropertiesInfoContributor.Mode
に基づいて使用する PropertySource
を返します。protected void copyIfSet(PropertiesSE target, StringSE key)
Properties
SE にコピーします。target
- 更新するターゲットプロパティ key
- キー protected void replaceValue(MapSE<StringSE,ObjectSE> content, StringSE key, ObjectSE value)
null
でない場合は、指定されたキーの value
を置き換えます。content
- 公開するコンテンツ key
- 置き換えるプロパティ value
- 新しい価値