cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r585164 - /cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/generation/PauseGeneratorBean.java
Date Tue, 16 Oct 2007 15:03:59 GMT
Author: vgritsenko
Date: Tue Oct 16 08:03:47 2007
New Revision: 585164

URL: http://svn.apache.org/viewvc?rev=585164&view=rev
Log:
javadoc

Modified:
    cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/generation/PauseGeneratorBean.java

Modified: cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/generation/PauseGeneratorBean.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/generation/PauseGeneratorBean.java?rev=585164&r1=585163&r2=585164&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/generation/PauseGeneratorBean.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/generation/PauseGeneratorBean.java
Tue Oct 16 08:03:47 2007
@@ -28,43 +28,40 @@
  * @cocoon.sitemap.component.documentation
  * This generator extends the usual FileGenerator with a pause parameter.
  * During generation of the content, this generator pauses for the given
- * amount of time.
- * This is very usefull for caching tests.
+ * amount of time (in seconds). This is very usefull for caching tests.
  * 
  * @version $Id$
- * @since   2.2
+ * @since 2.2
  */
-public class PauseGeneratorBean 
-    extends FileGeneratorBean {
+public class PauseGeneratorBean extends FileGeneratorBean {
 
     protected long secs;
 
     /**
-     * @see org.apache.cocoon.generation.FileGenerator#setup(org.apache.cocoon.environment.SourceResolver,
java.util.Map, java.lang.String, org.apache.avalon.framework.parameters.Parameters)
+     * Sets delay to the passed <code>pause</code> parameter. Defaults to 60
seconds
+     * if parameter is missing.
      */
-    public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par)
throws ProcessingException, SAXException, IOException {
+    public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par)
+    throws ProcessingException, SAXException, IOException {
         super.setup(resolver, objectModel, src, par);
         this.secs = par.getParameterAsLong("pause", 60);
     }
 
-    /**
-     * @see org.apache.cocoon.generation.FileGenerator#generate()
-     */
     public void generate()
     throws IOException, SAXException, ProcessingException {
-        if ( this.getLogger().isDebugEnabled() ) {
-            this.getLogger().debug("Waiting for " + secs + " secs.");
+        if (getLogger().isDebugEnabled() ) {
+            getLogger().debug("Waiting for " + secs + " secs.");
         }
+
         try {
             Thread.sleep(secs * 1000);
         } catch (InterruptedException ie) {
             // ignore
         }
-        if ( this.getLogger().isDebugEnabled() ) {
-            this.getLogger().debug("Finished waiting.");
+        if (getLogger().isDebugEnabled() ) {
+            getLogger().debug("Finished waiting.");
         }
+
         super.generate();
     }
-
-
 }



Mime
View raw message