Class ScriptManager
- java.lang.Object
-
- org.apache.logging.log4j.core.script.ScriptManager
-
- All Implemented Interfaces:
Serializable,FileWatcher
public class ScriptManager extends Object implements FileWatcher, Serializable
Manages the scripts use by the Configuration.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScriptManager(Configuration configuration, WatchManager watchManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddScript(AbstractScript script)BindingscreateBindings(AbstractScript script)Objectexecute(String name, Bindings bindings)voidfileModified(File file)Called when aWatchManagerdetects that the givenFilechanged.AbstractScriptgetScript(String name)
-
-
-
Constructor Detail
-
ScriptManager
public ScriptManager(Configuration configuration, WatchManager watchManager)
-
-
Method Detail
-
addScript
public void addScript(AbstractScript script)
-
createBindings
public Bindings createBindings(AbstractScript script)
-
getScript
public AbstractScript getScript(String name)
-
fileModified
public void fileModified(File file)
Description copied from interface:FileWatcherCalled when aWatchManagerdetects that the givenFilechanged.- Specified by:
fileModifiedin interfaceFileWatcher- Parameters:
file- the file that changed.- See Also:
WatchManager
-
-