cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r569094 - /cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/shielding/
Date Thu, 23 Aug 2007 18:04:17 GMT
Author: danielf
Date: Thu Aug 23 11:04:16 2007
New Revision: 569094

Simplifying servlet services:
* Removed the ServletServiceContextAware interface and the getServletServiceContext() method
and let the servlet service context become available through the ordinary getServletContext()
method. AFAICS it should work and it seem to work while testing. IIRC the need for having
two methods for handling the original and the servlet service context was needed in some earlier
version of the FW, hopefully I got it right and it isn't needed anymore.
* Added noop methods for init and destroy for the servlet proxy created in the ServletFactoryBean.
It is the responsibility of the factory bean to handle the life cycle of the servlet. This
protects the state from other containers.


Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/shielding/
--- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/shielding/
+++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/shielding/
Thu Aug 23 11:04:16 2007
@@ -92,7 +92,7 @@
         this.classLoader = 
-            ShieldedGroupClassLoaderManager.getClassLoader(getServletServiceContext(), parameters);
+            ShieldedGroupClassLoaderManager.getClassLoader(getServletContext(), parameters);
         // Create the servlet
         final ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();

View raw message