cocoon-cvs mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=569094&view=rev
Log:
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/ShieldingServletService.java

Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/shielding/ShieldingServletService.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/shielding/ShieldingServletService.java?rev=569094&r1=569093&r2=569094&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/shielding/ShieldingServletService.java
(original)
+++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/shielding/ShieldingServletService.java
Thu Aug 23 11:04:16 2007
@@ -92,7 +92,7 @@
                 this.classLoaderFactory);
         
         this.classLoader = 
-            ShieldedGroupClassLoaderManager.getClassLoader(getServletServiceContext(), parameters);
+            ShieldedGroupClassLoaderManager.getClassLoader(getServletContext(), parameters);
 
         // Create the servlet
         final ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();



Mime
View raw message