@Published(tag="architect") public class LogSettings extends Object
コンストラクタと説明 |
---|
LogSettings(String filePath)
コンストラクタ。
|
修飾子とタイプ | メソッドと説明 |
---|---|
String |
getFilePath()
プロパティファイルのファイルパスを取得する。
|
Map |
getProps()
全てのプロパティを取得する。
|
String |
getRequiredProp(String propName)
必須プロパティを取得する。
|
protected Map |
loadSettings(String filePath)
プロパティファイルを読み込み、設定をロードする。
|
protected Map |
trim(Properties props)
プロパティのキーと値をトリミングする。
|
public LogSettings(String filePath)
filePath
- プロパティファイルのファイルパスpublic String getFilePath()
public Map getProps()
protected Map loadSettings(String filePath)
filePath
- ファイルパスprotected Map trim(Properties props)
props
- プロパティpublic String getRequiredProp(String propName)
propName
- プロパティ名IllegalArgumentException
- プロパティが存在しない場合