public class ELService extends Object implements Service
ELEvaluator instances preconfigured with constants and functions defined in the
 configuration. The following configuration parameters control the EL service:
 CONF_CONSTANTS list
 of constant definitions to be available for EL evaluations. 
 CONF_FUNCTIONS list of function definitions
 to be available for EL evalations. 
Definitions must be separated by a comma, definitions are trimmed.
 The
 syntax for a constant definition is PREFIX:NAME=CLASS_NAME#CONSTANT_NAME. 
 The syntax for a constant
 definition is PREFIX:NAME=CLASS_NAME#METHOD_NAME.
| Modifier and Type | Field and Description | 
|---|---|
| static String | CONF_CONSTANTS | 
| static String | CONF_EXT_CONSTANTS | 
| static String | CONF_EXT_FUNCTIONS | 
| static String | CONF_FUNCTIONS | 
| static String | CONF_GROUPS | 
| static String | CONF_PREFIX | 
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description | 
|---|
| ELService() | 
| Modifier and Type | Method and Description | 
|---|---|
| ELEvaluator | createEvaluator(String group)Return an  ELEvaluatorpre-configured with the constants and functions for the specific group of
 EL-functions and variables defined in the configuration. | 
| void | destroy()Destroy the EL service. | 
| static Object | findConstant(String className,
            String constantName) | 
| static Method | findMethod(String className,
          String methodName) | 
| Class<? extends Service> | getInterface()Return the public interface for EL service. | 
| void | init(Services services)Initialize the EL service. | 
public static final String CONF_PREFIX
public static final String CONF_CONSTANTS
public static final String CONF_EXT_CONSTANTS
public static final String CONF_FUNCTIONS
public static final String CONF_EXT_FUNCTIONS
public static final String CONF_GROUPS
public ELService()
public void init(Services services) throws ServiceException
init in interface Serviceservices - services instance.ServiceException - thrown if the EL service could not be initialized.public Class<? extends Service> getInterface()
getInterface in interface ServiceELService.public ELEvaluator createEvaluator(String group)
ELEvaluator pre-configured with the constants and functions for the specific group of
 EL-functions and variables defined in the configuration. If the group name doesn't exist,
 IllegalArgumentException is throwngroup: - Name of the group of required EL Evaluator.ELEvaluator.public static Method findMethod(String className, String methodName) throws ServiceException
ServiceExceptionpublic static Object findConstant(String className, String constantName) throws ServiceException
ServiceExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.