commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29617] - [configuration] Add getXXXArray() methods for all types
Date Wed, 16 Jun 2004 21:43:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29617>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29617

[configuration] Add getXXXArray() methods for all types





------- Additional Comments From smanux@lfjr.net  2004-06-16 21:43 -------
I agree all of this will expand the Configuration interface significantly, but
is this fundamentally wrong ?

- it doesn't put a burden on the developpers, since these methods will be
implemented only once in AbstractConfiguration and inherited everywhere else

- it doesn't put a burden on the users since method names all follow the same
simple pattern:

get<Type>(String key)
get<Type>(String key, <Type> defaultValue)
get<Type>Array(String key)
get<Type>s(String key)

It's quite easy to remember, there is no need to dive into a huge javadoc page
to find the appropriate method name.

Configuration is already a convience interface comparing to Properties, that
seems a bit odd to provide a second level interface imho.

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