public class RestartServer extends Object
restart
the current application with updated
ClassLoaderFiles
.Constructor and Description |
---|
RestartServer(SourceDirectoryUrlFilter sourceDirectoryUrlFilter)
Create a new
RestartServer instance. |
RestartServer(SourceDirectoryUrlFilter sourceDirectoryUrlFilter,
ClassLoader classLoader)
Create a new
RestartServer instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
restart(Set<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, 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(Set<URL> urls, ClassLoaderFiles files)
urls
- the updated URLsfiles
- the updated files