4 Replies Latest reply on Mar 7, 2008 3:55 AM by Alex Sun

    Want to override Pages.initialize() method

    Alex Sun Newbie

      I want to implement my applicaton level Pages component, but i found Pages.initialize() is private which can not be overridden.


      I want to implement MyPages.initialize() method as follows:


      @Override
           public void initialize() {
                super.initialize();
      
                // load 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) {
                     }
                }
           }