You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@apache.org on 2002/02/20 22:23:07 UTC

cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/transformation/pagination Paginator.java

stefano     02/02/20 13:23:07

  Modified:    src/scratchpad/src/org/apache/cocoon/transformation/pagination
                        Paginator.java
  Log:
  removed the PathMap component which isn't really useful at this point
  
  Revision  Changes    Path
  1.2       +1 -11     xml-cocoon2/src/scratchpad/src/org/apache/cocoon/transformation/pagination/Paginator.java
  
  Index: Paginator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/transformation/pagination/Paginator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Paginator.java	20 Feb 2002 20:56:19 -0000	1.1
  +++ Paginator.java	20 Feb 2002 21:23:06 -0000	1.2
  @@ -74,7 +74,6 @@
   import org.apache.cocoon.caching.TimeStampCacheValidity;
   import org.apache.cocoon.components.parser.Parser;
   import org.apache.cocoon.components.store.Store;
  -import org.apache.cocoon.components.pathmap.PathMap;
   import org.apache.cocoon.environment.Request;
   import org.apache.cocoon.environment.Source;
   import org.apache.cocoon.environment.SourceResolver;
  @@ -92,7 +91,7 @@
    * A paginating transformer.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/02/20 20:56:19 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/20 21:23:06 $
    */
   public class Paginator extends AbstractTransformer
       implements Composable, Disposable, Cacheable {
  @@ -104,7 +103,6 @@
       private ComponentManager manager;
       private Parser parser;
       private Store store;
  -    private PathMap pathMap;
       private Source inputSource;
       private Parameters par;
       private Map objectModel;
  @@ -129,8 +127,6 @@
               this.parser = (Parser) manager.lookup(Parser.ROLE);
               getLogger().debug("Looking up " + Store.ROLE);
               this.store = (Store) manager.lookup(Store.ROLE);
  -            getLogger().debug("Looking up " + PathMap.ROLE);
  -            this.pathMap = (PathMap) manager.lookup(PathMap.ROLE);
           } catch (Exception e) {
               getLogger().error("Could not find component", e);
           }
  @@ -150,11 +146,6 @@
           } else {
               this.store = null;
           }
  -        if (this.pathMap != null) {
  -            this.manager.release((Component) this.pathMap);
  -        } else {
  -            this.pathMap = null;
  -        }
       }
   
       /**
  @@ -276,7 +267,6 @@
                           dest = src.substring(0, index + 1);
                       }
                   }
  -                this.pathMap.put(dest, src);
               }
           }
       }
  
  
  

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