commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-226) Describe more accurate about the getBoolean() method
Date Tue, 12 Sep 2006 20:06:31 GMT
    [ http://issues.apache.org/jira/browse/CONFIGURATION-226?page=comments#action_12434254
] 
            
Oliver Heger commented on CONFIGURATION-226:
--------------------------------------------

The JavaDoc of the getBoolean() methods was updated to point to PropertyConfiguration.toBoolean()
where the real conversion happens. Here the documentation now refers to the BooleanUtils class
from Commons Lang, which performs the boolean conversion for us. I hope this makes usage of
these methods clearer.

Because Commons Lang already has a class for transforming string values to boolean, I don't
want to add another implementation to Configuration. So if you need more string constants
that should evaluate to true, I would suggest talking to the Lang team.

> Describe more accurate about the getBoolean() method
> ----------------------------------------------------
>
>                 Key: CONFIGURATION-226
>                 URL: http://issues.apache.org/jira/browse/CONFIGURATION-226
>             Project: Commons Configuration
>          Issue Type: Improvement
>    Affects Versions: 1.2 Final
>            Reporter: Thomas Wabner
>            Priority: Minor
>
> In the javadoc there is only described, that a boolean value is try to load in the Configuration#getBoolean()
methods. But do you mean the Java Boolean values which are only working for strings like "true"
and "false" or do you have a more lazy implementation like for string in the combination "true",
"false", "t", "f", "y", "n" and so on? The javadoc should speak more about this.
> Is it possible to add the mory lazy boolean loading stuff? 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
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