public class ScriptManager extends Object implements FileWatcher, Serializable
Constructor and Description |
---|
ScriptManager(Configuration configuration,
WatchManager watchManager) |
Modifier and Type | Method and Description |
---|---|
void |
addScript(AbstractScript script) |
Bindings |
createBindings(AbstractScript script) |
Object |
execute(String name,
Bindings bindings) |
void |
fileModified(File file)
Called when a
WatchManager detects that the given File changed. |
AbstractScript |
getScript(String name) |
public ScriptManager(Configuration configuration, WatchManager watchManager)
public void addScript(AbstractScript script)
public Bindings createBindings(AbstractScript script)
public AbstractScript getScript(String name)
public void fileModified(File file)
FileWatcher
WatchManager
detects that the given File
changed.fileModified
in interface FileWatcher
file
- the file that changed.WatchManager
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.