public final class Reloader extends Object
The DomApplication class is responsible for instantiating all user-changeable classes by converting strings to Class instances. This DomApplication class itself is not reloadable (for now), but it's classloader must pass all loads to the classloader here so we can determine if a class is to be reloadable.
We have a total of three ClassLoaders in this process:
| Constructor and Description |
|---|
Reloader(String paths,
String pathsWatchOnly)
Create a reloader which handles the specified classes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
ClassLoader |
getReloadingLoader() |
URL[] |
getUrls() |
boolean |
isChanged()
Checks for changes on this classloader.
|
Class<DomApplication> |
loadApplication(String classname)
Used to load the Application class so it uses the proper ClassLoader.
|
public URL[] getUrls()
public ClassLoader getReloadingLoader()
public Class<DomApplication> loadApplication(String classname) throws Exception
classname - Exceptionpublic boolean isChanged()
public void clear()
Copyright © 2017 etc.to. All rights reserved.