[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-775) Seam should fail to startup if duplicate factory names are detected

Mike Quilleash (JIRA) jira-events at jboss.com
Mon Feb 5 11:25:19 EST 2007


Seam should fail to startup if duplicate factory names are detected
-------------------------------------------------------------------

                 Key: JBSEAM-775
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-775
             Project: JBoss Seam
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1.0.GA
         Environment: Any.
            Reporter: Mike Quilleash


When basing several components off a superclass with a @Factory annotation the @Factory gets bound to the last component's @Name.

Init.addFactoryMethod(), Init.addFactoryMethodBinding() and Init.addFactoryValueBinding() should all throw exceptions if something tries to insert an existing name into the map.

Would be nice to have @Factory in superclasses but I don't see a way of doing this as it can't "tell" which component it should be calling.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list