de.miethxml.hawron.cocoon.impl
Class CocoonBeanControllerImpl

java.lang.Object
  extended byde.miethxml.hawron.cocoon.impl.CocoonBeanControllerImpl
All Implemented Interfaces:
CocoonBeanController

public class CocoonBeanControllerImpl
extends java.lang.Object
implements CocoonBeanController

Author:
Simon Mieth

Constructor Summary
CocoonBeanControllerImpl()
           
 
Method Summary
 void addProcessListener(ProcessListener l)
           
 void brokenLinkFound(java.lang.String uri, java.lang.String parentURI, java.lang.String message, java.lang.Throwable t)
           
 void complete()
           
 void dispose()
           
 java.lang.Object getCocoonBean()
           
 void initialize(BeanConfiguration config)
          Configure and initialize a the CocoonBean with the given BeanConfiguration
 void interrupt()
          Interrupt the processing.
 void messageGenerated(java.lang.String msg)
           
 void pageGenerated(java.lang.String sourceURI, java.lang.String destinationURI, int pageSize, int linksInPage, int newLinksinPage, int pagesRemaining, int pagesComplete, long timeTaken)
           
 void pageSkipped(java.lang.String uri, java.lang.String message)
           
 void processTask(Task task)
          Process the given Task
 void processUri(java.lang.String uri, java.io.OutputStream out)
           
 void recycle()
          Recycle the CocoonBean for reprocessing Pipelines, with the current implementation of CocoonBean is only a dispose() and creating a new CocoonBean instance.
 void removeProcessListener(ProcessListener l)
           
 void warningGenerated(java.lang.String uri, java.lang.String warning)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CocoonBeanControllerImpl

public CocoonBeanControllerImpl()
Method Detail

initialize

public void initialize(BeanConfiguration config)
Description copied from interface: CocoonBeanController
Configure and initialize a the CocoonBean with the given BeanConfiguration

Specified by:
initialize in interface CocoonBeanController

processTask

public void processTask(Task task)
Description copied from interface: CocoonBeanController
Process the given Task

Specified by:
processTask in interface CocoonBeanController

recycle

public void recycle()
Description copied from interface: CocoonBeanController
Recycle the CocoonBean for reprocessing Pipelines, with the current implementation of CocoonBean is only a dispose() and creating a new CocoonBean instance.

Specified by:
recycle in interface CocoonBeanController

interrupt

public void interrupt()
Description copied from interface: CocoonBeanController
Interrupt the processing.

Specified by:
interrupt in interface CocoonBeanController

brokenLinkFound

public void brokenLinkFound(java.lang.String uri,
                            java.lang.String parentURI,
                            java.lang.String message,
                            java.lang.Throwable t)

complete

public void complete()

messageGenerated

public void messageGenerated(java.lang.String msg)

pageGenerated

public void pageGenerated(java.lang.String sourceURI,
                          java.lang.String destinationURI,
                          int pageSize,
                          int linksInPage,
                          int newLinksinPage,
                          int pagesRemaining,
                          int pagesComplete,
                          long timeTaken)

pageSkipped

public void pageSkipped(java.lang.String uri,
                        java.lang.String message)

warningGenerated

public void warningGenerated(java.lang.String uri,
                             java.lang.String warning)

addProcessListener

public void addProcessListener(ProcessListener l)
Specified by:
addProcessListener in interface CocoonBeanController

removeProcessListener

public void removeProcessListener(ProcessListener l)
Specified by:
removeProcessListener in interface CocoonBeanController

getCocoonBean

public java.lang.Object getCocoonBean()
Specified by:
getCocoonBean in interface CocoonBeanController
Returns:
the used CocoonBean

processUri

public void processUri(java.lang.String uri,
                       java.io.OutputStream out)
Specified by:
processUri in interface CocoonBeanController

dispose

public void dispose()
Specified by:
dispose in interface CocoonBeanController