public class JarLauncher extends ExecutableArchiveLauncher
Launcher
。このランチャーは、依存関係 jar が /BOOT-INF/lib
ディレクトリ内に含まれ、アプリケーションクラスが /BOOT-INF/classes
ディレクトリ内に含まれていることを前提としています。BOOT_CLASSPATH_INDEX_ATTRIBUTE
修飾子 | コンストラクターと説明 |
---|---|
| JarLauncher() |
protected | JarLauncher(Archive archive) |
修飾子と型 | メソッドと説明 |
---|---|
protected org.springframework.boot.loader.ClassPathIndexFile | getClassPathIndex(Archive archive) |
protected boolean | isNestedArchive(Archive.Entry entry) 指定されたエントリがクラスパスに追加する必要があるネストされたアイテムであるかどうかを確認します。 |
protected boolean | isPostProcessingClassPathArchives() 後処理をアーカイブに適用する必要がある場合に戻ります。 |
protected boolean | isSearchCandidate(Archive.Entry entry) 指定されたエントリがさらに検索する候補であるかどうかを確認します。 |
static void | main(StringSE[] args) |
createClassLoader, getArchive, getClassPathArchivesIterator, getMainClass, isExploded, postProcessClassPathArchives
createArchive, createClassLoader, createClassLoader, createMainMethodRunner, getClassPathArchives, launch, launch
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public JarLauncher()
protected JarLauncher(Archive archive)
protected org.springframework.boot.loader.ClassPathIndexFile getClassPathIndex(Archive archive) throws IOExceptionSE
ExecutableArchiveLauncher
の getClassPathIndex
IOExceptionSE
protected boolean isPostProcessingClassPathArchives()
ExecutableArchiveLauncher
true
を返しますが、ExecutableArchiveLauncher.postProcessClassPathArchives(List)
をオーバーライドしないサブクラスは、false
を返す実装を提供する必要があります。ExecutableArchiveLauncher
の isPostProcessingClassPathArchives
ExecutableArchiveLauncher.postProcessClassPathArchives(List)
メソッドが実装されている場合 protected boolean isSearchCandidate(Archive.Entry entry)
ExecutableArchiveLauncher
ExecutableArchiveLauncher
の isSearchCandidate
entry
- チェックするエントリ true
(エントリがさらに検索する候補である場合)protected boolean isNestedArchive(Archive.Entry entry)
ExecutableArchiveLauncher
ExecutableArchiveLauncher
の isNestedArchive
entry
- チェックするエントリ true
(jar またはディレクトリ)public static void main(StringSE[] args) throws ExceptionSE
ExceptionSE