2 Replies Latest reply on Mar 13, 2008 1:06 PM by claprun

    ServletContainer.register(ServletContainerContext context) m

      Can I assume that the method needs to be present on the interface because JBoss Portal in AS is using dynamic proxies for injection ?

        • 1. Re: ServletContainer.register(ServletContainerContext contex
          claprun

          Not sure, will investigate more. However, looking at the test case for ServletContainer, it looked that the method was used quite a bit as well... so I figured it should be on the interface instead of the default implementation.
          I think I need a better understanding of the web module to give a definitive answer.

          • 2. Re: ServletContainer.register(ServletContainerContext contex
            claprun

            Considering that ServletContainer is supposed to be a static registry for ServletContainerContexts (at least according to the javadoc), it seems natural to me that you should be able to register contexts with it. Also, the ServletContainerContext interface makes several references to such a registration (cf. Registration inner interface for example).
            The register method is used by JBossWebContext in Portal.
            With the addition of add/removeWebAppListener on ServletContainer, the whole Registration concept seems rather convoluted and seems to make the API more complex than necessary (though I might not have a proper understanding of the big picture).