forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject cvs commit: xml-forrest/src/java/org/apache/cocoon/components/modules/input LocationMapModule.java
Date Wed, 22 Oct 2003 16:52:34 GMT
unico       2003/10/22 09:52:34

  Modified:    src/java/org/apache/cocoon/components/modules/input
                        LocationMapModule.java
  Log:
  added dispose stage
  
  Revision  Changes    Path
  1.2       +8 -2      xml-forrest/src/java/org/apache/cocoon/components/modules/input/LocationMapModule.java
  
  Index: LocationMapModule.java
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/java/org/apache/cocoon/components/modules/input/LocationMapModule.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LocationMapModule.java	21 Oct 2003 08:33:36 -0000	1.1
  +++ LocationMapModule.java	22 Oct 2003 16:52:34 -0000	1.2
  @@ -55,6 +55,7 @@
   import java.util.Iterator;
   import java.util.Map;
   
  +import org.apache.avalon.framework.activity.Disposable;
   import org.apache.avalon.framework.component.Component;
   import org.apache.avalon.framework.component.ComponentException;
   import org.apache.avalon.framework.component.ComponentManager;
  @@ -79,7 +80,7 @@
    * @author <a href="mailto:unico@hippo.nl">Unico Hommes</a>
    */
   public class LocationMapModule extends AbstractLogEnabled 
  -    implements InputModule, Composable, Configurable, ThreadSafe {
  +    implements InputModule, Composable, Configurable, Disposable, ThreadSafe {
       
       private static final Iterator ATTNAMES = Collections.EMPTY_LIST.iterator();
       
  @@ -98,6 +99,10 @@
           m_src = configuration.getChild("file").getAttribute("src");
       }
       
  +    public void dispose() {
  +        m_lm.dispose();
  +    }
  +    
       private LocationMap getLocationMap() throws Exception {
           Source source = null;
           try {
  @@ -124,6 +129,7 @@
                                   getLogger().debug("reloading location map at " + m_src);
                               }
                               m_srcVal = valid;
  +                            m_lm.dispose();
                               m_lm = new LocationMap(m_manager);
                               m_lm.enableLogging(getLogger());
                               m_lm.build(loadConfiguration(source));
  @@ -206,5 +212,5 @@
           
           return new Object[] {getAttribute(name,modeConf,objectModel)};
       }
  -    
  +
   }
  
  
  

Mime
View raw message