You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Nazar Volynets (JIRA)" <ji...@apache.org> on 2016/06/05 03:10:59 UTC
[jira] [Created] (OOZIE-2557) Introduce possibility to invoke Java
static method
Nazar Volynets created OOZIE-2557:
-------------------------------------
Summary: Introduce possibility to invoke Java static method
Key: OOZIE-2557
URL: https://issues.apache.org/jira/browse/OOZIE-2557
Project: Oozie
Issue Type: Improvement
Components: bundle, coordinator, workflow
Affects Versions: 4.2.0
Reporter: Nazar Volynets
Please introduce possibility to call any Java static method in application classpath by reflection.
h5. Option 1 - New Basic Oozie/EL Function
These function should provide a possibility to specify input arguments for target Java static method.
Example:
* function signature
{code}
Type —> String, int, boolean, double
Type callStaticMethod(String clazz, String method, [Type arg1, [Type argN])
{code}
* function usage
{code}
${ callStaticMethod('java.lang.Integer', 'valueOf', '10') }
{code}
h5. Option 2 - Introduce scriptlets like in JSP
Use special character % for it. It should be possible to mix it with Oozie/EL.
Example:
{code}
%{ java.lang.Integer.valueOf('10') }
%{ java.lang.Integer.valueOf(${someStringValue}) }
{code}
{quote}
It will bring a lot of benefits due the list of available EL functions isn't very wide.
{quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)