[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-3509) Medium-Grained Pluggable Pages.xml Files
John Gilbert (JIRA)
jira-events at lists.jboss.org
Sun Oct 5 15:37:20 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Gilbert updated JBSEAM-3509:
---------------------------------
Attachment: Pages.java
The change is to the initialize() method:
public void initialize()
{
for (String resource: resources)
{
InputStream stream = ResourceLoader.instance().getResourceAsStream(resource);
if (stream==null)
{
log.info("no pages.xml file found: " + resource);
}
else
{
log.debug("reading pages.xml file: " + resource);
parse(stream);
}
}
Enumeration<URL> resources;
try
{
resources = Thread.currentThread().getContextClassLoader().getResources("META-INF/pages.xml");
}
catch (IOException ioe)
{
throw new RuntimeException("error scanning META-INF/pages.xml files", ioe);
}
while (resources.hasMoreElements())
{
URL url = resources.nextElement();
try
{
log.debug("reading " + url);
parse(url.openStream());
}
catch (Exception e)
{
throw new RuntimeException("error while reading " + url, e);
}
}
}
> Medium-Grained Pluggable Pages.xml Files
> ----------------------------------------
>
> Key: JBSEAM-3509
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3509
> Project: Seam
> Issue Type: Feature Request
> Affects Versions: 2.0.2.SP1
> Reporter: John Gilbert
> Attachments: Pages.java
>
>
> This is an enhancement to Pages.java such that it will search the classpath for META-INF/pages.xml files similar to the way Initialization.java searches for META-INF/components.xml files.
> The motivation for this is the ability to compose a seam application from decoupled subsystems.
--
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
More information about the seam-issues
mailing list