@Published(tag="architect") public class GenericLauncher extends Object
ProcessLifecycle
実装クラスに委譲される。修飾子とタイプ | フィールドと説明 |
---|---|
protected CommandLine |
commandLine
コマンドライン引数
|
static String |
PROCESS_LIFECYCLE_KEY
ProcessLifecycle 実装クラスを取得するためのキー |
コンストラクタと説明 |
---|
GenericLauncher(String[] programArguments)
コンストラクタ。
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
fillDefault(List args,
String key)
デフォルト値を設定する。
|
protected String[] |
fillDefault(String[] orig)
プログラム引数にデフォルト値を設定する。
|
protected ProcessLifecycle |
getProcessLifecycle()
ProcessLifecycle を取得する。 |
protected void |
initializeLog()
各種ログの初期化を行う。
|
protected void |
initializeRepository()
リポジトリの初期化を行う。
|
void |
launch()
アプリケーションを起動する。
|
static void |
main(String[] args)
mainメソッド。
|
protected String[] |
nullToEmpty(String[] strings) |
protected void |
setUpSystemRepository(String configFilePath)
システムリポジトリの初期化を行う。
|
public static final String PROCESS_LIFECYCLE_KEY
ProcessLifecycle
実装クラスを取得するためのキーprotected final CommandLine commandLine
public GenericLauncher(String[] programArguments)
programArguments
- プログラム引数public static void main(String[] args)
args
- プログラム引数public void launch()
protected void initializeLog()
protected void initializeRepository()
protected ProcessLifecycle getProcessLifecycle()
ProcessLifecycle
を取得する。
この実装では、SystemRepository
から取得する。ProcessLifecycle
protected void setUpSystemRepository(String configFilePath)
configFilePath
- コンポーネント設定ファイルのパスprotected String[] fillDefault(String[] orig)
CommandLine.validateOptions(Map)
にて必須チェックが行われるので
設定されていない場合はデフォルト値を設定する。
orig
- プログラム引数CommandLine.validateOptions(Map)