cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/generation ServletGenerator.java
Date Thu, 16 Aug 2001 01:15:17 GMT
vgritsenko    01/08/15 18:15:17

  Modified:    src/org/apache/cocoon/generation Tag: cocoon_20_branch
                        ServletGenerator.java
  Log:
  patching memory leaks
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +11 -1     xml-cocoon2/src/org/apache/cocoon/generation/ServletGenerator.java
  
  Index: ServletGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/ServletGenerator.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- ServletGenerator.java	2001/05/22 14:41:22	1.2
  +++ ServletGenerator.java	2001/08/16 01:15:16	1.2.2.1
  @@ -22,7 +22,7 @@
   /**
    *
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2001/05/22 14:41:22 $
  + * @version CVS $Revision: 1.2.2.1 $ $Date: 2001/08/16 01:15:16 $
    */
   public abstract class ServletGenerator extends ComposerGenerator
   implements Composable {
  @@ -38,5 +38,15 @@
         this.request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
         this.response = (Response) objectModel.get(Constants.RESPONSE_OBJECT);
         this.context = (Context) objectModel.get(Constants.CONTEXT_OBJECT);
  +    }
  +
  +    /**
  +     * Recycle the generator by removing references
  +     */
  +    public void recycle() {
  +        super.recycle();
  +        this.request = null;
  +        this.response = null;
  +        this.context = 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