public class RestartServer
extends java.lang.Object
restart the current application with updated
ClassLoaderFiles.| Constructor and Description |
|---|
RestartServer(SourceDirectoryUrlFilter sourceDirectoryUrlFilter)
Create a new
RestartServer instance. |
RestartServer(SourceDirectoryUrlFilter sourceDirectoryUrlFilter,
java.lang.ClassLoader classLoader)
Create a new
RestartServer instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
restart(java.util.Set<java.net.URL> urls,
ClassLoaderFiles files)
Called to restart the application.
|
void |
updateAndRestart(ClassLoaderFiles files)
Update the current running application with the specified
ClassLoaderFiles
and trigger a reload. |
public RestartServer(SourceDirectoryUrlFilter sourceDirectoryUrlFilter)
RestartServer instance.sourceDirectoryUrlFilter - the source filter used to link remote directory to
the local classpathpublic RestartServer(SourceDirectoryUrlFilter sourceDirectoryUrlFilter, java.lang.ClassLoader classLoader)
RestartServer instance.sourceDirectoryUrlFilter - the source filter used to link remote directory to
the local classpathclassLoader - the application classloaderpublic void updateAndRestart(ClassLoaderFiles files)
ClassLoaderFiles
and trigger a reload.files - updated class loader filesprotected void restart(java.util.Set<java.net.URL> urls,
ClassLoaderFiles files)
urls - the updated URLsfiles - the updated files