public class ScriptInvoker extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.bsf.BSFEngine |
engine |
protected int |
hotUpdateInterval |
protected long |
lastCheckTime |
protected long |
lastModified |
protected File |
scriptFile |
Constructor and Description |
---|
ScriptInvoker(File scriptFile,
int hotUpdateInterval) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkUpdate() |
protected void |
initEngine() |
Object |
invoke(String functionName,
Object[] args) |
protected String |
readScript()
Reads the complete script source code into a String
|
protected File scriptFile
protected long lastModified
protected long lastCheckTime
protected int hotUpdateInterval
protected org.apache.bsf.BSFEngine engine
public ScriptInvoker(File scriptFile, int hotUpdateInterval)
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.