[jboss-user] [JBoss Seam] - Re: Need seam to load XXX.jar!/META-INF/pages.xml
zjsun
do-not-reply at jboss.com
Sat Feb 2 23:41:01 EST 2008
| @Scope(ScopeType.APPLICATION)
| @BypassInterceptors
| @Name("org.jboss.seam.navigation.pages")
| @Install(precedence = Install.APPLICATION)
| public class EpstarPages extends SeamPages {
|
| @Override
| public void initialize() {
| super.initialize();
|
| // å è½½ XXX.jar!/META-INF/pages.xml
| for (URL url : ResourcesUtils
| .findClassLoaderResources("/META-INF/pages.xml")) {
| try {
| InputStream stream = url.openStream();
| parse(stream);
| } catch (IOException e) {
| }
| }
| }
|
| }
|
as org.jboss.seam.navigation.Pages made "initialize" method with "private", i just create new SeamPages class which extends org.jboss.seam.navigation.Pages, by coping all Pages class's source, and make "initialize" method with "public".
right?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125828#4125828
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125828
More information about the jboss-user
mailing list