commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ron (JIRA)" <>
Subject [jira] Created: (CONFIGURATION-395) groovy for interpolation and expression engine
Date Sun, 06 Sep 2009 08:06:57 GMT
groovy for interpolation and expression engine

                 Key: CONFIGURATION-395
             Project: Commons Configuration
          Issue Type: Improvement
          Components: Expression engine, Interpolation
            Reporter: ron
            Priority: Minor

Currently the expression engine can be set but not the interpolation.
This patch proposes the ability to set a user specified interpolation engine.
It includes a groovy interpolation engine. Groovy comes naturally as an expressions and interpolation
language in the java environment

API usage:

		AbstractConfiguration c = new PropertiesConfiguration("conf/test.conf");
		c.setInterpolator(new GInterpolator(c));

Configuration examples:

library.path.1=${ if  ("${System.getProperty{('')}".toLowerCase().startsWith("windows"))
"libw.dll"; else "libl" }
password=${println 'enter password'; readln}

I think that this is more feature rich than JEXL and is easier to use for java programmers.

- Ron

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message