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 Summary: Tools for code generation of configuration properties Product: Commons Version: 1.1 Final Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: Configuration AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] I would like to just suggest a kind of code generation from a defined properties/xml file, so the user can avoid the use of string representing the properties on whole source code. For example if I have the following property: ftpServer.login = anonymous in order to get the value of such property, instead of: getProperty("ftpServer.login"); to have an equivalente class representation, like this: getFtpServer().getLogin(); or just: ftpServer().getLogin(); with this solution, you avoid miss-spelling of the property name (for example: instead of "ftpServer.loging", "ftpserver.login"), because you will get a compiler error. in order to get this target we need a kind of code generation of the corresponding classes. Like any other generation tools it should be a mapping file for configuring the way the properties/subproperties/nodes could be mapped, for example tomorrows I would like to map: ftpServer.login to getServe ().getLogin(). With the default configuration the mapping will be the same. It could be just and ant-taks for doing this, probably with velocity would be easy to implement. Thanks in advance, David Leal [EMAIL PROTECTED] (If you want I could colaborate) -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
