Package nablarch.fw.launcher
Class GenericLauncher
java.lang.Object
nablarch.fw.launcher.GenericLauncher
汎用のプログラム起動クラス。
本クラスはプログラム起動の共通的な枠組みのみを提供し、
個別の処理については
ProcessLifecycle実装クラスに委譲される。- Author:
- T.Kawasaki
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CommandLineコマンドライン引数static final StringProcessLifecycle実装クラスを取得するためのキー -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]fillDefault(String[] orig) プログラム引数にデフォルト値を設定する。 以下の項目について、CommandLine.validateOptions(Map)にて必須チェックが行われるので 設定されていない場合はデフォルト値を設定する。 -requestPath -userIdprotected voidfillDefault(List<String> args, String key) デフォルト値を設定する。protected ProcessLifecycleProcessLifecycleを取得する。 この実装では、SystemRepositoryから取得する。protected void各種ログの初期化を行う。protected voidリポジトリの初期化を行う。voidlaunch()アプリケーションを起動する。static voidmainメソッド。protected String[]nullToEmpty(String[] strings) protected voidsetUpSystemRepository(String configFilePath) システムリポジトリの初期化を行う。
-
Field Details
-
PROCESS_LIFECYCLE_KEY
ProcessLifecycle実装クラスを取得するためのキー- See Also:
-
commandLine
コマンドライン引数
-
-
Constructor Details
-
GenericLauncher
コンストラクタ。- Parameters:
programArguments- プログラム引数
-
-
Method Details
-
main
mainメソッド。- Parameters:
args- プログラム引数
-
launch
public void launch()アプリケーションを起動する。 -
initializeLog
protected void initializeLog()各種ログの初期化を行う。 -
initializeRepository
protected void initializeRepository()リポジトリの初期化を行う。 -
getProcessLifecycle
ProcessLifecycleを取得する。 この実装では、SystemRepositoryから取得する。- Returns:
ProcessLifecycle
-
setUpSystemRepository
システムリポジトリの初期化を行う。- Parameters:
configFilePath- コンポーネント設定ファイルのパス
-
fillDefault
プログラム引数にデフォルト値を設定する。 以下の項目について、CommandLine.validateOptions(Map)にて必須チェックが行われるので 設定されていない場合はデフォルト値を設定する。- -requestPath
- -userId
- Parameters:
orig- プログラム引数- Returns:
- デフォルト値設定済みのプログラム引数
- See Also:
-
CommandLine.validateOptions(Map)
-
nullToEmpty
-
fillDefault
デフォルト値を設定する。- Parameters:
args- プログラム引数key- キー
-