JTools

org.jtools.info.publisher
Class DelegatedPublisher

java.lang.Object
  extended by org.jtools.info.publisher.AbstractPublisher
      extended by org.jtools.info.publisher.DelegatedPublisher
All Implemented Interfaces:
InfoPublisher
Direct Known Subclasses:
SimpleInfoSupport

public class DelegatedPublisher
extends AbstractPublisher

TODO type-description

Author:
Rainer Noack

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jtools.info.InfoPublisher
InfoPublisher.Support
 
Field Summary
protected  InfoPublisher delegator
           
 
Constructor Summary
DelegatedPublisher(InfoPublisher delegator)
           
 
Method Summary
 boolean addConsumer(Collection<? extends InfoConsumer> x)
           
 boolean addConsumer(InfoConsumer... x)
           
 Collection<InfoConsumer> getConsumers()
           
 Manager getManager()
           
 void publish(Object ctx, InfoDeclaration declaration, Throwable exception, Object... args)
          Publishes an information.
 boolean removeConsumer(Collection<? extends InfoConsumer> x)
           
 boolean removeConsumer(InfoConsumer... x)
           
 
Methods inherited from class org.jtools.info.publisher.AbstractPublisher
publish, publish, publish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegator

protected final InfoPublisher delegator
Constructor Detail

DelegatedPublisher

public DelegatedPublisher(InfoPublisher delegator)
Method Detail

getManager

public Manager getManager()

getConsumers

public Collection<InfoConsumer> getConsumers()

publish

public void publish(Object ctx,
                    InfoDeclaration declaration,
                    Throwable exception,
                    Object... args)
Description copied from interface: InfoPublisher
Publishes an information.

Specified by:
publish in interface InfoPublisher
Specified by:
publish in class AbstractPublisher
Parameters:
ctx - The context of the information.
declaration - The declaration of the information.
exception - An exception to which this information relies.
args - The arguments of this information as declared in the InfoDeclaration.

addConsumer

public boolean addConsumer(InfoConsumer... x)

addConsumer

public boolean addConsumer(Collection<? extends InfoConsumer> x)

removeConsumer

public boolean removeConsumer(InfoConsumer... x)

removeConsumer

public boolean removeConsumer(Collection<? extends InfoConsumer> x)

JTools

© 2000-2006, JTools.org.