org.jtools.info.publisher
Class SimplePublisher
java.lang.Object
org.jtools.info.publisher.AbstractPublisher
org.jtools.info.publisher.SimplePublisher
- All Implemented Interfaces:
- InfoPublisher
public class SimplePublisher
- extends AbstractPublisher
TODO type-description
- Author:
- Rainer Noack
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DUMMY
public static final InfoPublisher DUMMY
SimplePublisher
public SimplePublisher(Manager manager)
SimplePublisher
public SimplePublisher(InfoPublisher parent)
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)
© 2000-2006, JTools.org.