public class RestartServer extends Object
restart
the current application with updated
ClassLoaderFiles
.Constructor and Description |
---|
RestartServer(SourceFolderUrlFilter sourceFolderUrlFilter)
Create a new
RestartServer instance. |
RestartServer(SourceFolderUrlFilter sourceFolderUrlFilter,
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(SourceFolderUrlFilter sourceFolderUrlFilter)
RestartServer
instance.sourceFolderUrlFilter
- the source filter used to link remote folder to the
local classpathpublic RestartServer(SourceFolderUrlFilter sourceFolderUrlFilter, ClassLoader classLoader)
RestartServer
instance.sourceFolderUrlFilter
- the source filter used to link remote folder 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 filesCopyright © 2018 Pivotal Software, Inc.. All rights reserved.