From portal-commits at lists.jboss.org Tue Nov 20 16:36:28 2007 Content-Type: multipart/mixed; boundary="===============5121834228045915613==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r9051 - branches/JBoss_Portal_Branch_2_6/server/src/main/org/jboss/portal/web/jboss. Date: Tue, 20 Nov 2007 16:36:18 -0500 Message-ID: --===============5121834228045915613== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: julien(a)jboss.com Date: 2007-11-20 16:36:18 -0500 (Tue, 20 Nov 2007) New Revision: 9051 Modified: branches/JBoss_Portal_Branch_2_6/server/src/main/org/jboss/portal/web/jb= oss/JBossWebContext.java Log: - make JBossWebContext delegate the registration to the DefaultServletConta= inerFactory so it can be easily located from anywhere else Modified: branches/JBoss_Portal_Branch_2_6/server/src/main/org/jboss/portal= /web/jboss/JBossWebContext.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/JBoss_Portal_Branch_2_6/server/src/main/org/jboss/portal/web/j= boss/JBossWebContext.java 2007-11-20 21:26:47 UTC (rev 9050) +++ branches/JBoss_Portal_Branch_2_6/server/src/main/org/jboss/portal/web/j= boss/JBossWebContext.java 2007-11-20 21:36:18 UTC (rev 9051) @@ -25,6 +25,7 @@ import org.jboss.portal.web.RequestDispatchCallback; import org.jboss.portal.web.ServletContainer; import org.jboss.portal.web.ServletContainerFactory; +import org.jboss.portal.web.impl.DefaultServletContainerFactory; import org.jboss.portal.web.command.CommandDispatcher; import org.jboss.portal.web.spi.ServletContainerContext; = @@ -35,7 +36,8 @@ import java.io.IOException; = /** - * JBossWeb implementation of the spi. + * JBossWeb implementation of the spi. It implements the ServletCont= ainerFactory interface + * but it get the returned instance from the DefaultServletContainerFactor= y instance. * * @author Julien Viet * @version $Revision$ @@ -47,9 +49,8 @@ private final CommandDispatcher dispatcher =3D new CommandDispatcher(); = /** . */ - private final ServletContainer servletContainer =3D new ServletContaine= r(); + private final ServletContainer servletContainer =3D DefaultServletConta= inerFactory.getInstance().getServletContainer(); = - public JBossWebContext() { servletContainer.register(this); --===============5121834228045915613==--