net.sf.logdistiller.publishers
Class DelegatePublisher
java.lang.Object
net.sf.logdistiller.Publisher
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatePublisher
public DelegatePublisher(String id,
String className)
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 publishreport
- 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 publishreport
- the report configuration
- Throws:
IOException
Publisher.PublishException
Copyright © 2004-2009. All Rights Reserved.