public abstract class Launcher extends ObjectSE
Archive による完全に構成されたクラスパスでアプリケーションを起動できるランチャーの基本クラス。| コンストラクターと説明 |
|---|
Launcher() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected Archive | createArchive() |
protected ClassLoaderSE | createClassLoader(ListSE<Archive> archives) 指定されたアーカイブのクラスローダーを作成します。 |
protected ClassLoaderSE | createClassLoader(URLSE[] urls) 指定された URL のクラスローダーを作成します。 |
protected MainMethodRunner | createMainMethodRunner(StringSE mainClass, StringSE[] args, ClassLoaderSE classLoader) アプリケーションの起動に使用する MainMethodRunner を作成します。 |
protected abstract ListSE<Archive> | getClassPathArchives() クラスパスの構築に使用されるアーカイブを返します。 |
protected abstract StringSE | getMainClass() 起動するメインクラスを返します。 |
protected void | launch(StringSE[] args) アプリケーションを起動します。 |
protected void | launch(StringSE[] args, StringSE mainClass, ClassLoaderSE classLoader) アーカイブファイルと完全に構成されたクラスローダーを指定して、アプリケーションを起動します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected void launch(StringSE[] args) throws ExceptionSE
public static void main(String[] args) メソッドによって呼び出される最初のエントリポイントです。args - 入力引数 ExceptionSE - アプリケーションの起動に失敗した場合 protected ClassLoaderSE createClassLoader(ListSE<Archive> archives) throws ExceptionSE
archives - アーカイブ ExceptionSE - クラスローダーを作成できない場合 protected ClassLoaderSE createClassLoader(URLSE[] urls) throws ExceptionSE
urls - URLExceptionSE - クラスローダーを作成できない場合 protected void launch(StringSE[] args, StringSE mainClass, ClassLoaderSE classLoader) throws ExceptionSE
args - 入力引数 mainClass - 実行するメインクラス classLoader - クラスローダー ExceptionSE - 打ち上げが失敗した場合 protected MainMethodRunner createMainMethodRunner(StringSE mainClass, StringSE[] args, ClassLoaderSE classLoader)
MainMethodRunner を作成します。mainClass - メインクラス args - 入力引数 classLoader - クラスローダー protected abstract StringSE getMainClass() throws ExceptionSE
ExceptionSE - メインクラスを取得できない場合 protected abstract ListSE<Archive> getClassPathArchives() throws ExceptionSE
ExceptionSE - クラスパスアーカイブを取得できない場合 protected final Archive createArchive() throws ExceptionSE
ExceptionSECopyright © 2019 Pivotal Software, Inc.. All rights reserved.