public abstract class Launcher extends ObjectSE
Archive
による完全に構成されたクラスパスでアプリケーションを起動できるランチャーの基本クラス。コンストラクターと説明 |
---|
Launcher() |
修飾子と型 | メソッドと説明 |
---|---|
protected Archive | createArchive() |
protected ClassLoaderSE | createClassLoader(IteratorSE<Archive> archives) 指定されたアーカイブのクラスローダーを作成します。 |
protected ClassLoaderSE | createClassLoader(ListSE<Archive> archives) 使用すべきではありません。 2.3.0 以降、2.5.0 で削除され createClassLoader(Iterator) を推奨 |
protected ClassLoaderSE | createClassLoader(URLSE[] urls) 指定された URL のクラスローダーを作成します。 |
protected MainMethodRunner | createMainMethodRunner(StringSE mainClass, StringSE[] args, ClassLoaderSE classLoader) アプリケーションの起動に使用する MainMethodRunner を作成します。 |
protected Archive | getArchive() ルートアーカイブを返します。 |
protected ListSE<Archive> | getClassPathArchives() 使用すべきではありません。 2.3.0 以降、2.5.0 で削除され getClassPathArchivesIterator() の実装を推奨。 |
protected IteratorSE<Archive> | getClassPathArchivesIterator() クラスパスの構築に使用されるアーカイブを返します。 |
protected abstract StringSE | getMainClass() 起動するメインクラスを返します。 |
protected boolean | isExploded() ランチャーが分解モードで実行されているかどうかを返します。 |
protected void | launch(StringSE[] args) アプリケーションを起動します。 |
protected void | launch(StringSE[] args, StringSE launchClass, ClassLoaderSE classLoader) アーカイブファイルと完全に構成されたクラスローダーを指定して、アプリケーションを起動します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected void launch(StringSE[] args) throws ExceptionSE
public static void main(String[] args)
メソッドによって呼び出される最初のエントリポイントです。args
- 入力引数 ExceptionSE
- アプリケーションの起動に失敗した場合 @DeprecatedSE protected ClassLoaderSE createClassLoader(ListSE<Archive> archives) throws ExceptionSE
createClassLoader(Iterator)
を推奨 archives
- アーカイブ ExceptionSE
- クラスローダーを作成できない場合 protected ClassLoaderSE createClassLoader(IteratorSE<Archive> archives) throws ExceptionSE
archives
- アーカイブ ExceptionSE
- クラスローダーを作成できない場合 protected ClassLoaderSE createClassLoader(URLSE[] urls) throws ExceptionSE
urls
- URLExceptionSE
- クラスローダーを作成できない場合 protected void launch(StringSE[] args, StringSE launchClass, ClassLoaderSE classLoader) throws ExceptionSE
args
- 入力引数 launchClass
- 実行する起動クラス classLoader
- クラスローダー ExceptionSE
- 打ち上げが失敗した場合 protected MainMethodRunner createMainMethodRunner(StringSE mainClass, StringSE[] args, ClassLoaderSE classLoader)
MainMethodRunner
を作成します。mainClass
- メインクラス args
- 入力引数 classLoader
- クラスローダー protected abstract StringSE getMainClass() throws ExceptionSE
ExceptionSE
- メインクラスを取得できない場合 protected IteratorSE<Archive> getClassPathArchivesIterator() throws ExceptionSE
ExceptionSE
- クラスパスアーカイブを取得できない場合 @DeprecatedSE protected ListSE<Archive> getClassPathArchives() throws ExceptionSE
getClassPathArchivesIterator()
の実装を推奨して 2.5.0 で削除するための 2.3.0 以降。ExceptionSE
- クラスパスアーカイブを取得できない場合 protected final Archive createArchive() throws ExceptionSE
ExceptionSE
protected boolean isExploded()
true
を返す場合、通常の JAR のみがサポートされ、追加の URL および ClassLoader サポートインフラストラクチャを最適化できます。protected Archive getArchive()