[seam-issues] [JBoss JIRA] Created: (SEAMSERVLET-31) Extension classes should have a public constructor

Dan Allen (JIRA) jira-events at lists.jboss.org
Mon Mar 21 21:02:45 EDT 2011


Extension classes should have a public constructor
--------------------------------------------------

                 Key: SEAMSERVLET-31
                 URL: https://issues.jboss.org/browse/SEAMSERVLET-31
             Project: Seam Servlet
          Issue Type: Bug
          Components: Compliance
    Affects Versions: 3.0.0.CR1
            Reporter: Dan Allen
            Priority: Minor
             Fix For: 3.0.0.Final


Some implementations don't properly detect extensions that are not public or do not have public default constructors. The CDI spec is quiet on this requirement, but the JavaDoc for ServiceLoader states "The only requirement enforced by this facility is that provider classes must have a zero-argument constructor so that they can be instantiated during loading." It's reasonable for us to use a public class & public constructor.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list