public class DefaultRestartInitializer extends 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 |
|---|---|
URL[] |
getInitialUrls(Thread thread)
Return the initial set of URLs for the
Restarter or null if no
initial restart is required. |
protected URL[] |
getUrls(Thread thread)
Return the URLs that should be used with initialization.
|
protected boolean |
isMain(Thread thread)
Returns if the thread is for a main invocation.
|
public URL[] getInitialUrls(Thread thread)
RestartInitializerRestarter or null if no
initial restart is required.getInitialUrls in interface RestartInitializerthread - the source threadnullprotected boolean isMain(Thread thread)
thread - the thread to checktrue if the thread is a main invocationCopyright © 2019 Pivotal Software, Inc.. All rights reserved.