Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-3840

Annotations with default values (Convention over Configuration)

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: The future
    • Fix Version/s: None
    • Component/s: Framework, Spring
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                spotlight2001 walter mauritz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: