Class ScriptFile
- java.lang.Object
-
- org.apache.logging.log4j.core.script.AbstractScript
-
- org.apache.logging.log4j.core.script.ScriptFile
-
@Plugin(name="ScriptFile", category="Core", printObject=true) public class ScriptFile extends AbstractScript
Container for the language and body of a script file along with the file location.
-
-
Field Summary
-
Fields inherited from class org.apache.logging.log4j.core.script.AbstractScript
DEFAULT_LANGUAGE, LOGGER
-
-
Constructor Summary
Constructors Constructor Description ScriptFile(String name, Path filePath, String language, boolean isWatched, String scriptText)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScriptFile
createScript(String name, String language, String filePathOrUri, Boolean isWatched, Charset charset)
Path
getPath()
boolean
isWatched()
String
toString()
-
Methods inherited from class org.apache.logging.log4j.core.script.AbstractScript
getLanguage, getName, getScriptText
-
-
-
-
Method Detail
-
getPath
public Path getPath()
-
isWatched
public boolean isWatched()
-
createScript
@PluginFactory public static ScriptFile createScript(@PluginAttribute("name") String name, @PluginAttribute("language") String language, @PluginAttribute("path") String filePathOrUri, @PluginAttribute("isWatched") Boolean isWatched, @PluginAttribute("charset") Charset charset)
-
-