JTools

org.jtools.info.publisher
Class SimplePublisher

java.lang.Object
  extended by org.jtools.info.publisher.AbstractPublisher
      extended by org.jtools.info.publisher.SimplePublisher
All Implemented Interfaces:
InfoPublisher

public class SimplePublisher
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
static InfoPublisher DUMMY
           
 
Constructor Summary
SimplePublisher(InfoPublisher parent)
           
SimplePublisher(Manager manager)
           
 
Method Summary
 boolean addConsumer(Collection<? extends InfoConsumer> x)
           
 boolean addConsumer(InfoConsumer... x)
           
protected  boolean addSingleConsumer(InfoConsumer x)
           
 Collection<InfoConsumer> getConsumers()
           
 Manager getManager()
           
static InfoPublisherFactory getSimpleFactory()
           
 void publish(Object ctx, InfoDeclaration declaration, Throwable exception, Object... args)
          Publishes an information.
 boolean removeConsumer(Collection<? extends InfoConsumer> x)
           
 boolean removeConsumer(InfoConsumer... x)
           
protected  boolean removeSingleConsumer(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

DUMMY

public static final InfoPublisher DUMMY
Constructor Detail

SimplePublisher

public SimplePublisher(Manager manager)

SimplePublisher

public SimplePublisher(InfoPublisher parent)
Method Detail

getSimpleFactory

public static InfoPublisherFactory getSimpleFactory()

addSingleConsumer

protected boolean addSingleConsumer(InfoConsumer x)

addConsumer

public boolean addConsumer(InfoConsumer... x)

addConsumer

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

getConsumers

public Collection<InfoConsumer> getConsumers()

getManager

public Manager getManager()

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.

removeSingleConsumer

protected boolean removeSingleConsumer(InfoConsumer x)

removeConsumer

public boolean removeConsumer(InfoConsumer... x)

removeConsumer

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

JTools

© 2000-2006, JTools.org.