public class DefaultRestartInitializer extends ObjectSE implements RestartInitializer
RestartInitializer
。「ファット」jar(展開を含む)を実行するとき、またはテストから実行するときに初期化をスキップします。NONE
コンストラクターと説明 |
---|
DefaultRestartInitializer() |
修飾子と型 | メソッドと説明 |
---|---|
URLSE[] | getInitialUrls(ThreadSE thread) 最初の再起動が必要ない場合は、 Restarter または null の URL の初期セットを返します。 |
protected URLSE[] | getUrls(ThreadSE thread) 初期化で使用する必要がある URL を返します。 |
protected boolean | isDevelopmentClassLoader(ClassLoaderSE classLoader) 指定された classLoader が開発中に通常使用されるものであるかどうかを返します。 |
protected boolean | isMain(ThreadSE thread) スレッドがメイン呼び出し用であるかどうかを返します。 |
protected boolean | isMainThread(ThreadSE thread) 指定された thread がメインスレッドと見なされるかどうかを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public URLSE[] getInitialUrls(ThreadSE thread)
RestartInitializer
Restarter
または null
の URL の初期セットを返します。RestartInitializer
の getInitialUrls
thread
- ソーススレッド null
protected boolean isMain(ThreadSE thread)
checks the name of the thread
および the context classloader
です。thread
- チェックするスレッド true
isMainThread(java.lang.Thread)
, isDevelopmentClassLoader(ClassLoader)
protected boolean isMainThread(ThreadSE thread)
thread
がメインスレッドと見なされるかどうかを返します。thread
- チェックするスレッド true
、それ以外の場合は false
protected boolean isDevelopmentClassLoader(ClassLoaderSE classLoader)
classLoader
が開発中に通常使用されるものであるかどうかを返します。classLoader
- チェックする ClassLoadertrue
、それ以外の場合は false