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/java/org/apache/cocoon/components/source SourceHandlerImpl.java
Date Thu, 21 Mar 2002 04:51:22 GMT
vgritsenko    02/03/20 20:51:22

  Modified:    src/java/org/apache/cocoon/components/source
                        SourceHandlerImpl.java
  Log:
  dispose source factory
  
  Revision  Changes    Path
  1.8       +5 -2      xml-cocoon2/src/java/org/apache/cocoon/components/source/SourceHandlerImpl.java
  
  Index: SourceHandlerImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/SourceHandlerImpl.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SourceHandlerImpl.java	14 Mar 2002 12:55:10 -0000	1.7
  +++ SourceHandlerImpl.java	21 Mar 2002 04:51:22 -0000	1.8
  @@ -79,7 +79,7 @@
   
   /**
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version $Id: SourceHandlerImpl.java,v 1.7 2002/03/14 12:55:10 sylvain Exp $
  + * @version $Id: SourceHandlerImpl.java,v 1.8 2002/03/21 04:51:22 vgritsenko Exp $
    */
   public final class SourceHandlerImpl
   extends AbstractLoggable
  @@ -205,7 +205,10 @@
       throws ProcessingException {
           try {
               this.init(factory, null);
  -            this.sourceFactories.put(protocol, factory);
  +            SourceFactory oldFactory = (SourceFactory)this.sourceFactories.put(protocol,
factory);
  +            if (oldFactory != null) {
  +                deinit(oldFactory);
  +            }
           } catch (ComponentException e) {
               throw new ProcessingException("cannot initialize factory: " + factory, e);
           } catch (ContextException e) {
  
  
  

----------------------------------------------------------------------
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