public abstract class ExecutableArchiveLauncher extends Launcher
Launcher
の基本クラス。修飾子と型 | フィールドと説明 |
---|---|
protected static StringSE | BOOT_CLASSPATH_INDEX_ATTRIBUTE |
修飾子 | コンストラクターと説明 |
---|---|
| ExecutableArchiveLauncher() |
protected | ExecutableArchiveLauncher(Archive archive) |
修飾子と型 | メソッドと説明 |
---|---|
protected ClassLoaderSE | createClassLoader(IteratorSE<Archive> archives) 指定されたアーカイブのクラスローダーを作成します。 |
protected Archive | getArchive() ルートアーカイブを返します。 |
protected IteratorSE<Archive> | getClassPathArchivesIterator() クラスパスの構築に使用されるアーカイブを返します。 |
protected org.springframework.boot.loader.ClassPathIndexFile | getClassPathIndex(Archive archive) |
protected StringSE | getMainClass() 起動するメインクラスを返します。 |
protected boolean | isExploded() ランチャーが分解モードで実行されているかどうかを返します。 |
protected abstract boolean | isNestedArchive(Archive.Entry entry) 指定されたエントリがクラスパスに追加する必要があるネストされたアイテムであるかどうかを確認します。 |
protected boolean | isPostProcessingClassPathArchives() 後処理をアーカイブに適用する必要がある場合に戻ります。 |
protected boolean | isSearchCandidate(Archive.Entry entry) 指定されたエントリがさらに検索する候補であるかどうかを確認します。 |
protected void | postProcessClassPathArchives(ListSE<Archive> archives) 使用前にアーカイブエントリを後処理するために呼び出されます。 |
createArchive, createClassLoader, createClassLoader, createMainMethodRunner, getClassPathArchives, launch, launch
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ExecutableArchiveLauncher()
protected ExecutableArchiveLauncher(Archive archive)
protected org.springframework.boot.loader.ClassPathIndexFile getClassPathIndex(Archive archive) throws IOExceptionSE
protected StringSE getMainClass() throws ExceptionSE
Launcher
Launcher
の getMainClass
ExceptionSE
- メインクラスを取得できない場合 protected ClassLoaderSE createClassLoader(IteratorSE<Archive> archives) throws ExceptionSE
Launcher
Launcher
の createClassLoader
archives
- アーカイブ ExceptionSE
- クラスローダーを作成できない場合 protected IteratorSE<Archive> getClassPathArchivesIterator() throws ExceptionSE
Launcher
Launcher
の getClassPathArchivesIterator
ExceptionSE
- クラスパスアーカイブを取得できない場合 protected boolean isSearchCandidate(Archive.Entry entry)
entry
- チェックするエントリ true
(エントリがさらに検索する候補である場合)protected abstract boolean isNestedArchive(Archive.Entry entry)
entry
- チェックするエントリ true
(jar またはディレクトリ)protected boolean isPostProcessingClassPathArchives()
true
を返しますが、postProcessClassPathArchives(List)
をオーバーライドしないサブクラスは、false
を返す実装を提供する必要があります。postProcessClassPathArchives(List)
メソッドが実装されている場合 protected void postProcessClassPathArchives(ListSE<Archive> archives) throws ExceptionSE
archives
- アーカイブ ExceptionSE
- 後処理が失敗した場合 isPostProcessingClassPathArchives()
protected boolean isExploded()
Launcher
true
を返す場合、通常の JAR のみがサポートされ、追加の URL および ClassLoader サポートインフラストラクチャを最適化できます。Launcher
の isExploded
protected final Archive getArchive()
Launcher
Launcher
の getArchive