[
https://jira.jboss.org/jira/browse/JBSEAM-3509?page=com.atlassian.jira.pl...
]
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