notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r1311 - development/main/planet/facilities/http/impl/src/main/net/dpml/http/impl
- From: niclas AT netcompartner.com
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r1311 - development/main/planet/facilities/http/impl/src/main/net/dpml/http/impl
- Date: Mon, 27 Dec 2004 09:08:20 +0100
Author: niclas
Date: Mon Dec 27 09:08:20 2004
New Revision: 1311
Modified:
development/main/planet/facilities/http/impl/src/main/net/dpml/http/impl/ServletHandler.java
Log:
Working on getting something useful into the ServletContext.
Modified:
development/main/planet/facilities/http/impl/src/main/net/dpml/http/impl/ServletHandler.java
==============================================================================
---
development/main/planet/facilities/http/impl/src/main/net/dpml/http/impl/ServletHandler.java
(original)
+++
development/main/planet/facilities/http/impl/src/main/net/dpml/http/impl/ServletHandler.java
Mon Dec 27 09:08:20 2004
@@ -16,6 +16,7 @@
package net.dpml.http.impl;
import net.dpml.activity.Startable;
+import net.dpml.composition.model.ContainmentModel;
import net.dpml.configuration.Configurable;
import net.dpml.configuration.Configuration;
import net.dpml.configuration.ConfigurationException;
@@ -40,6 +41,8 @@
private Logger m_Logger;
private HttpContextService m_Context;
private int m_Index;
+ private ContainmentModel m_Model;
+ private boolean m_EnableModelInContext;
/**
* @metro.logger name="http"
@@ -49,6 +52,8 @@
* key="session-manager" optional="true"
* @metro.entry key="urn:metro:name"
* type="java.lang.String"
+ * @metro.entry key="urn:composition:containment.model"
+ * type="net.dpml.composition.model.ContainmentModel"
*/
public ServletHandler( Logger logger, Context ctx, Parameters params,
ServiceManager man )
throws ServiceException, ContextException
@@ -70,6 +75,10 @@
boolean autoInitialize = params.getParameterAsBoolean(
"auto-initialize-servlets", true );
setAutoInitializeServlets( autoInitialize );
+
+ m_EnableModelInContext = params.getParameterAsBoolean(
"enable-composition-model", false );
+ if( m_EnableModelInContext )
+ m_Model = (ContainmentModel) ctx.get(
"urn:composition:containment.model" );
}
public void configure( Configuration conf )
@@ -116,6 +125,8 @@
m_Logger.debug( "Starting ServletHandler: " + this );
if( ! isStarted() )
super.doStart();
+// if( m_EnableModelInContext )
+// getServletContext().setAttribute(
"urn:composition:containment.model", m_Model );
}
protected void doStop()
- svn commit: r1311 - development/main/planet/facilities/http/impl/src/main/net/dpml/http/impl, niclas, 12/27/2004
Archive powered by MHonArc 2.6.24.