You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2009/04/11 08:14:14 UTC

[jira] Created: (CONFIGURATION-380) Allow expressions during lookup processing.

Allow expressions during lookup processing.
-------------------------------------------

                 Key: CONFIGURATION-380
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-380
             Project: Commons Configuration
          Issue Type: New Feature
          Components: Expression engine
    Affects Versions: 1.6
            Reporter: Ralph Goers
            Assignee: Ralph Goers
             Fix For: 1.7


We have a need to use String manipulation functions such as are provided by commons lang StringUtils on values in DefaultConfigurationBuilder's configuration file. For example, we use the MDCStrLookup provided by SLF4J and need to call

right(${mdc:myKey}, 2) in a file pattern.

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


[jira] Resolved: (CONFIGURATION-380) Allow expressions during lookup processing.

Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved CONFIGURATION-380.
---------------------------------------

    Resolution: Fixed

I added a new ExprLookup class that uses Commons Jexl to evaluate expressions. Documentation on how to use it was added to the user's guide.

> Allow expressions during lookup processing.
> -------------------------------------------
>
>                 Key: CONFIGURATION-380
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-380
>             Project: Commons Configuration
>          Issue Type: New Feature
>          Components: Expression engine
>    Affects Versions: 1.6
>            Reporter: Ralph Goers
>            Assignee: Ralph Goers
>             Fix For: 1.7
>
>
> We have a need to use String manipulation functions such as are provided by commons lang StringUtils on values in DefaultConfigurationBuilder's configuration file. For example, we use the MDCStrLookup provided by SLF4J and need to call
> right(${mdc:myKey}, 2) in a file pattern.

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