|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.service.ELService
public class ELService
The ELService creates ELEvaluator instances preconfigured with constants and functions defined in the
configuration.
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.
| Field Summary | |
|---|---|
static java.lang.String |
CONF_CONSTANTS
|
static java.lang.String |
CONF_EXT_CONSTANTS
|
static java.lang.String |
CONF_EXT_FUNCTIONS
|
static java.lang.String |
CONF_FUNCTIONS
|
static java.lang.String |
CONF_GROUPS
|
static java.lang.String |
CONF_PREFIX
|
| Constructor Summary | |
|---|---|
ELService()
|
|
| Method Summary | |
|---|---|
ELEvaluator |
createEvaluator(java.lang.String group)
Return an ELEvaluator pre-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 java.lang.Object |
findConstant(java.lang.String className,
java.lang.String constantName)
|
static java.lang.reflect.Method |
findMethod(java.lang.String className,
java.lang.String methodName)
|
java.lang.Class<? extends Service> |
getInterface()
Return the public interface for EL service. |
void |
init(Services services)
Initialize the EL service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONF_PREFIX
public static final java.lang.String CONF_CONSTANTS
public static final java.lang.String CONF_EXT_CONSTANTS
public static final java.lang.String CONF_FUNCTIONS
public static final java.lang.String CONF_EXT_FUNCTIONS
public static final java.lang.String CONF_GROUPS
| Constructor Detail |
|---|
public ELService()
| Method Detail |
|---|
public void init(Services services)
throws ServiceException
init in interface Serviceservices - services instance.
ServiceException - thrown if the EL service could not be initialized.public void destroy()
destroy in interface Servicepublic java.lang.Class<? extends Service> getInterface()
getInterface in interface ServiceELService.public ELEvaluator createEvaluator(java.lang.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 thrown
group: - Name of the group of required EL Evaluator.
ELEvaluator.
public static java.lang.reflect.Method findMethod(java.lang.String className,
java.lang.String methodName)
throws ServiceException
ServiceException
public static java.lang.Object findConstant(java.lang.String className,
java.lang.String constantName)
throws ServiceException
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||