Package nablarch.fw.launcher
Class GenericLauncher
java.lang.Object
nablarch.fw.launcher.GenericLauncher
汎用のプログラム起動クラス。
 本クラスはプログラム起動の共通的な枠組みのみを提供し、
 個別の処理については
ProcessLifecycle実装クラスに委譲される。- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final CommandLineコマンドライン引数static final StringProcessLifecycle実装クラスを取得するためのキー
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_KEYProcessLifecycle実装クラスを取得するためのキー- See Also:
 
- 
commandLineコマンドライン引数
 
- 
- 
Constructor Details- 
GenericLauncherコンストラクタ。- Parameters:
- programArguments- プログラム引数
 
 
- 
- 
Method Details- 
mainmainメソッド。- Parameters:
- args- プログラム引数
 
- 
launchpublic void launch()アプリケーションを起動する。
- 
initializeLogprotected void initializeLog()各種ログの初期化を行う。
- 
initializeRepositoryprotected void initializeRepository()リポジトリの初期化を行う。
- 
getProcessLifecycleProcessLifecycleを取得する。 この実装では、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- キー
 
 
-