[seam-issues] [JBoss JIRA] Created: (JBSEAM-4741) Seam should load component properties found on seam.properties files found on jar files on classpath
Bruno Souza (JIRA)
jira-events at lists.jboss.org
Sun Dec 12 23:22:52 EST 2010
Seam should load component properties found on seam.properties files found on jar files on classpath
----------------------------------------------------------------------------------------------------
Key: JBSEAM-4741
URL: https://issues.jboss.org/browse/JBSEAM-4741
Project: Seam
Issue Type: Feature Request
Components: Core, Documentation Issues
Affects Versions: 2.2.0.GA
Reporter: Bruno Souza
Priority: Minor
In Seam documentation, section 5.1 (http://docs.jboss.org/seam/2.2.0.GA/en-US/html/xml.html#d0e4417) states that: "Seam components may be provided with configuration properties either via ...., or via a properties file named seam.properties in the root of the classpath."
This information mislead the reader which thinks that every seam.properties file found on jar files that contains Seam components can/will be used to configure Seam components.
This interpretation has lead to some inquiries on Seam user forum about the feature of seam.properties not working as expected, see:
(http://seamframework.org/Community/SeampropertiesAndComponentsproperties)
(http://seamframework.org/Community/DifferenceBetweenSeampropertiesAndComponentsxml) and
(http://seamframework.org/Community/ReadPropertiesFromSeampropertiesForUnitTestWithTestNG)
I think that if Seam scans jar files to found seam.properties to mark those archives as containers of Seam components, it can load those properties files and use information found on them to configure the components.
Looking at the source of Initialization.create(), it seems to me that the implementation of this suggestion is alredy implemented on the Initialization.initComponentsFromXmlDocuments which do what I suggest but with the components.xml files.
--
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