public class DefaultRestartInitializer extends java.lang.Object implements RestartInitializer
RestartInitializer that only enable initial restart when running a
standard "main" method. Skips initialization when running "fat" jars (included
exploded) or when running from a test.NONE| Constructor and Description |
|---|
DefaultRestartInitializer() |
| Modifier and Type | Method and Description |
|---|---|
java.net.URL[] |
getInitialUrls(java.lang.Thread thread)
Return the initial set of URLs for the
Restarter or null if no
initial restart is required. |
protected java.net.URL[] |
getUrls(java.lang.Thread thread)
Return the URLs that should be used with initialization.
|
protected boolean |
isMain(java.lang.Thread thread)
Returns if the thread is for a main invocation.
|
public java.net.URL[] getInitialUrls(java.lang.Thread thread)
RestartInitializerRestarter or null if no
initial restart is required.getInitialUrls in interface RestartInitializerthread - the source threadnullprotected boolean isMain(java.lang.Thread thread)
thread - the thread to checktrue if the thread is a main invocationprotected java.net.URL[] getUrls(java.lang.Thread thread)
thread - the source thread