commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thibaut Martin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-255) DatabaseConfiguration doesn't support List properties (again)
Date Fri, 02 Mar 2007 09:53:50 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477238
] 

Thibaut Martin commented on CONFIGURATION-255:
----------------------------------------------

Hello,

Here is my example:

        DatabaseConfiguration configuration = new DatabaseConfiguration
(dataSource, "CONF", "KEY", "VALUE");

        LOG.debug (configuration.isDelimiterParsingDisabled ());       =>
false
        LOG.debug (configuration.getListDelimiter ());                 => ,

        String value = configuration.getString (key);
        LOG.debug (value);                                             =>
a,b,c

        List<String> list = configuration.getList (key);
        LOG.debug (list.size ());                                      => 1
        for (String element: list) {
            LOG.debug (element);                                       =>
a,b,c
        }

  Thibaut



> DatabaseConfiguration doesn't support List properties (again)
> -------------------------------------------------------------
>
>                 Key: CONFIGURATION-255
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-255
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Sun Java(TM) System Application Server Platform Edition 9.0, Oracle
9i
>            Reporter: Thibaut Martin
>            Priority: Minor
>
> The getList() and getStringArray() methods always return a one element list/array, when
used with DatabaseConfiguration.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message