Class ScriptManager
java.lang.Object
org.apache.logging.log4j.core.script.ScriptManager
- All Implemented Interfaces:
FileWatcher
Manages the scripts use by the Configuration.
-
Constructor Summary
ConstructorDescriptionScriptManager
(Configuration configuration, WatchManager watchManager, String scriptLanguages) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addScript
(AbstractScript script) createBindings
(AbstractScript script) void
fileModified
(File file) Called when aWatchManager
detects that the givenFile
changed.
-
Constructor Details
-
ScriptManager
public ScriptManager(Configuration configuration, WatchManager watchManager, String scriptLanguages)
-
-
Method Details
-
getAllowedLanguages
-
addScript
-
createBindings
-
getScript
-
fileModified
Description copied from interface:FileWatcher
Called when aWatchManager
detects that the givenFile
changed.- Specified by:
fileModified
in interfaceFileWatcher
- Parameters:
file
- the file that changed.- See Also:
-
execute
-