Class ScriptInvoker


  • public class ScriptInvoker
    extends Object
    • Field Detail

      • scriptFile

        protected File scriptFile
      • lastModified

        protected long lastModified
      • lastCheckTime

        protected long lastCheckTime
      • hotUpdateInterval

        protected int hotUpdateInterval
      • engine

        protected org.apache.bsf.BSFEngine engine
    • Constructor Detail

      • ScriptInvoker

        public ScriptInvoker​(File scriptFile,
                             int hotUpdateInterval)
    • Method Detail

      • checkUpdate

        protected void checkUpdate()
      • initEngine

        protected void initEngine()
      • readScript

        protected String readScript()
        Reads the complete script source code into a String