public class SpringApplicationLauncher extends ObjectSE
SpringApplication
または SpringApplication
サブクラスのランチャー。使用されるクラスは、System プロパティ spring.application.class.name
または SPRING_APPLICATION_CLASS_NAME
環境変数を使用して構成できます。リフレクションを使用して、起動コードがアプリケーションコードとは別の ClassLoader に存在できるようにします。System.getProperty(String)
SE, System.getenv(String)
SEコンストラクターと説明 |
---|
SpringApplicationLauncher(ClassLoaderSE classLoader) 指定された classLoader を使用して構成済みの SpringApplication クラスをロードする新しいランチャーを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected StringSE | getEnvironmentVariable(StringSE name) |
ObjectSE | launch(ClassSE<?>[] sources, StringSE[] args) 指定された sources を使用して作成されたアプリケーションを起動します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public SpringApplicationLauncher(ClassLoaderSE classLoader)
classLoader
を使用して構成済みの SpringApplication
クラスをロードする新しいランチャーを作成します。classLoader
- 使用する ClassLoader
public ObjectSE launch(ClassSE<?>[] sources, StringSE[] args) throws ExceptionSE
sources
を使用して作成されたアプリケーションを起動します。アプリケーションは、指定された args
で起動されます。sources
- アプリケーションのソース args
- アプリケーションの引数 ApplicationContext
ExceptionSE
- 打ち上げが失敗した場合