cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/servlet CocoonServlet.java
Date Fri, 08 Jun 2001 14:33:37 GMT
sylvain     01/06/08 07:33:36

  Modified:    src/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  Dispose Cocoon when servlet is destroyed
  
  Revision  Changes    Path
  1.14      +14 -1     xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- CocoonServlet.java	2001/06/05 08:13:58	1.13
  +++ CocoonServlet.java	2001/06/08 14:33:35	1.14
  @@ -58,7 +58,7 @@
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
    * @author <a href="mailto:nicolaken@supereva.it">Nicola Ken Barozzi</a> Aisa
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.13 $ $Date: 2001/06/05 08:13:58 $
  + * @version CVS $Revision: 1.14 $ $Date: 2001/06/08 14:33:35 $
    */
   
   public class CocoonServlet extends HttpServlet {
  @@ -147,6 +147,19 @@
           this.allowReload = (value == null || value.equals("yes") || value.equals("true"));
   
           this.createCocoon();
  +    }
  +
  +    /**
  +     * Dispose Cocoon when servlet is destroyed
  +     */
  +    public void destroy()
  +    {
  +    	if (this.cocoon != null)
  +    	{
  +            log.debug("Servlet destroyed - disposing Cocoon");
  +    	    this.cocoon.dispose();
  +    	    this.cocoon = null;
  +    	}
       }
   
        /**
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message