Apache Tuscany SCA Core SPI

org.apache.tuscany.sca.event
Interface EventPublisher

All Known Subinterfaces:
Store

public interface EventPublisher

Publishes events in the runtime by accepting Event objects and forwarding them to all registered RuntimeEventListener objects.

Version:
$$Rev: 539359 $$ $$Date: 2007-05-18 11:06:21 +0100 (Fri, 18 May 2007) $$

Method Summary
 void addListener(EventFilter filter, RuntimeEventListener listener)
          Registers a listener to receive notifications for the context
 void addListener(RuntimeEventListener listener)
          Registers a listener to receive notifications for the context
 void publish(Event object)
          Publish an event to all regisitered listeners
 void removeListener(RuntimeEventListener listener)
          Removes a previously registered listener
 

Method Detail

publish

void publish(Event object)
Publish an event to all regisitered listeners

Parameters:
object - The event to publich

addListener

void addListener(RuntimeEventListener listener)
Registers a listener to receive notifications for the context

Parameters:
listener - The listener to add

addListener

void addListener(EventFilter filter,
                 RuntimeEventListener listener)
Registers a listener to receive notifications for the context

Parameters:
filter - The filter that will be applied before the lister is called
listener - The lister to add

removeListener

void removeListener(RuntimeEventListener listener)
Removes a previously registered listener

Parameters:
listener - The listener to remove

Apache Tuscany SCA Core SPI

Apache Tuscany is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache WS PMC.