JTools

org.jtools.info
Interface InfoPublisher

All Known Subinterfaces:
InfoSupport
All Known Implementing Classes:
AbstractPublisher, DelegatedPublisher, SimpleInfoSupport, SimplePublisher

public interface InfoPublisher

Base interface for the info feature.

Author:
Rainer Noack

Nested Class Summary
static interface InfoPublisher.Support
          Interface for Feature oriented design.
 
Method Summary
 boolean addConsumer(Collection<? extends InfoConsumer> x)
           
 boolean addConsumer(InfoConsumer... x)
           
 Collection<InfoConsumer> getConsumers()
           
 Manager getManager()
           
 void publish(Object ctx, InfoDeclaration declaration, Object... args)
          Publishes an information.
 void publish(Object ctx, InfoDeclaration declaration, Throwable exception, Object... args)
          Publishes an information.
 boolean removeConsumer(Collection<? extends InfoConsumer> x)
           
 boolean removeConsumer(InfoConsumer... x)
           
 

Method Detail

publish

void publish(Object ctx,
             InfoDeclaration declaration,
             Throwable exception,
             Object... args)
Publishes an information.

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.

publish

void publish(Object ctx,
             InfoDeclaration declaration,
             Object... args)
Publishes an information.

Parameters:
ctx - The context of the information.
declaration - The declaration of the information.
args - The arguments of this information as declared in the InfoDeclaration.

addConsumer

boolean addConsumer(InfoConsumer... x)

addConsumer

boolean addConsumer(Collection<? extends InfoConsumer> x)

removeConsumer

boolean removeConsumer(InfoConsumer... x)

removeConsumer

boolean removeConsumer(Collection<? extends InfoConsumer> x)

getConsumers

Collection<InfoConsumer> getConsumers()

getManager

Manager getManager()

JTools

© 2000-2006, JTools.org.