[portal-commits] JBoss Portal SVN: r9051 - branches/JBoss_Portal_Branch_2_6/server/src/main/org/jboss/portal/web/jboss.
portal-commits at lists.jboss.org
portal-commits at lists.jboss.org
Tue Nov 20 16:36:18 EST 2007
Author: julien at 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/jboss/JBossWebContext.java
Log:
- make JBossWebContext delegate the registration to the DefaultServletContainerFactory 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
===================================================================
--- branches/JBoss_Portal_Branch_2_6/server/src/main/org/jboss/portal/web/jboss/JBossWebContext.java 2007-11-20 21:26:47 UTC (rev 9050)
+++ branches/JBoss_Portal_Branch_2_6/server/src/main/org/jboss/portal/web/jboss/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 <code>ServletContainerFactory</code> interface
+ * but it get the returned instance from the DefaultServletContainerFactory instance.
*
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
* @version $Revision$
@@ -47,9 +49,8 @@
private final CommandDispatcher dispatcher = new CommandDispatcher();
/** . */
- private final ServletContainer servletContainer = new ServletContainer();
+ private final ServletContainer servletContainer = DefaultServletContainerFactory.getInstance().getServletContainer();
-
public JBossWebContext()
{
servletContainer.register(this);
More information about the portal-commits
mailing list