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 39385] - [configuration] Tools for code generation of configuration properties
Date Sun, 23 Apr 2006 18:26:58 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=39385>.
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=39385





------- Additional Comments From achepati67@yahoo.es  2006-04-23 18:26 -------
Thanks Oliver for your comment,

I am not thinking to be included on Configuration, but in Configuration-tools. 
For example like Hibernate has hibernate-tools, to simplify the way to work 
with Hibernate providing code generation tools, like hbm2java for generating 
the java code from the *.hbm.xml configuration files.

I am thinking in a similar way. The use of string configuration constant in 
the source code is not a good practice and produce a lot of execution errors 
because on big teams it could be probably some programmer miss spell some 
string constant and normally your detect such error on executing time.

About your comment using JAXB, it could be appropiate only for XML-
configuration files. What is interesting of Configuration library is that it 
is practically independently of the type of file you stores your configuration.

Probably you know, but finally most of frameworks provides a kind of Config 
class with set/get method for let the user to change/use some contants 
configuration on the source code. It does spring, hibernate, etc. Such 
generated code will replace such hand made classes.

Probably it has to be a kind of companion-configuration project, in order to 
simplify the way to use the configuration tool.

Thanks any way for your comments,

I hope other members see this idea usefull, I am any way to go on thinking 
about how to implement it.

David


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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