net.sf.logdistiller.publishers
Class DelegatePublisher

java.lang.Object
  extended by net.sf.logdistiller.Publisher
      extended by net.sf.logdistiller.publishers.DelegatePublisher

public class DelegatePublisher
extends Publisher

An empty publisher, delegating everything to a delegate publisher. The delegate publisher gets instantiated on the first use, then its libraries dependencies are needed only if the publisher is really used, not when the publisher is registered.

Since:
1.1

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.logdistiller.Publisher
Publisher.PublishException
 
Constructor Summary
DelegatePublisher(String id, String className)
           
 
Method Summary
protected  Publisher getDelegate()
           
 String getId()
          Get the publisher-id for this class.
 void publish(LogDistillation.Group group, LogDistiller.Report report)
          Publish a group report.
 void publish(LogDistillation logdistillation, LogDistiller.Report report)
          Publish a global report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatePublisher

public DelegatePublisher(String id,
                         String className)
Method Detail

getId

public String getId()
Description copied from class: Publisher
Get the publisher-id for this class.

Specified by:
getId in class Publisher
Returns:
a unique publisher id

getDelegate

protected Publisher getDelegate()

publish

public void publish(LogDistillation logdistillation,
                    LogDistiller.Report report)
             throws IOException,
                    Publisher.PublishException
Description copied from class: Publisher
Publish a global report.

Specified by:
publish in class Publisher
Parameters:
logdistillation - the logdistillation containing the results to publish
report - the report configuration
Throws:
IOException
Publisher.PublishException

publish

public void publish(LogDistillation.Group group,
                    LogDistiller.Report report)
             throws IOException,
                    Publisher.PublishException
Description copied from class: Publisher
Publish a group report.

Specified by:
publish in class Publisher
Parameters:
group - the logdstillation group containing the results to publish
report - the report configuration
Throws:
IOException
Publisher.PublishException


Copyright © 2004-2009. All Rights Reserved.