Class ScriptFactory

java.lang.Object
org.apache.commons.jexl.JexlOne
org.apache.commons.jexl.ScriptFactory

@Deprecated public final class ScriptFactory extends JexlOne
Deprecated.
Create a JexlEngine and use the createScript method on that instead.

Creates Scripts. To create a JEXL Script, pass valid JEXL syntax to the static createScript() method:

 String jexl = "y = x * 12 + 44; y = y * 4;";
 Script script = ScriptFactory.createScript( jexl );
 

When an Script is created, the JEXL syntax is parsed and verified.

This is a convenience class; using an instance of a JexlEngine that serves the same purpose with more control is recommended.

Since:
1.1
Version:
$Id$
  • Constructor Details