Class JexlScriptEngine.Factory

java.lang.Object
org.apache.commons.jexl3.scripting.JexlScriptEngineFactory
org.apache.commons.jexl3.scripting.JexlScriptEngine.Factory
All Implemented Interfaces:
ScriptEngineFactory
Enclosing class:
JexlScriptEngine

public static class JexlScriptEngine.Factory extends JexlScriptEngineFactory
A factory that shares the JexlEngine instance between all JexlScriptEngine instances it creates.

All JexlScriptEngine instances created by this factory share the same JexlEngine instance and JexlUberspect instance.

To create a JexlScriptEngine with a different JexlEngine instance, use the JexlScriptEngine(JexlScriptEngineFactory) constructor.

Since:
3.3
  • Field Details

    • jexl

      private volatile JexlEngine jexl
      The shared engine instance.

      A single JEXL engine and JexlUberspect is shared by all instances of JexlScriptEngine created by this factory.

  • Constructor Details

    • Factory

      public Factory()
      Default constructor.
    • Factory

      public Factory(JexlPermissions permissions)
      For specialization.
      Parameters:
      permissions - The permissions to use for the engine
  • Method Details