Annotations with default values (Convention over Configuration)
---------------------------------------------------------------
Key: JBSEAM-3840
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3840
Project: Seam
Issue Type: Feature Request
Components: Framework, Spring
Affects Versions: The future
Reporter: walter mauritz
convetion over configuration to make it easier for developers:
now:
@Name("abcXyz") //ALL documentation i have seen so far anyway uses the
classname, so why do i have to mention it twice
public class AbcXyz
suggested default:
@Name
public class AbcXyz
-> seam component "abcXyz"
same goes for injection of spring components
old:
@In("#{hibernateTemplate}") HibernateTemlate hibernateTemplate; //why do I have
to mention it 3 times?
suggested:
@SpringByType HibernateTemlate hibernateTemplate; //use classname first case lower
@SpringByName HibernateTemlate hibernateTemplate; //use variable name first case lower
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira