org.jdtaus.core.text
Interface MessageEventSource


public interface MessageEventSource

is implemented by classes firing s.

Example: Listening to all jDTAUS Core SPI compliant implementations in the system

 MessageEventSource source =
     (MessageEventSource) ContainerFactory.getContainer().
     getImplementation(MessageEventSource.class, "jDTAUS Core SPI");

 source.addMessageListener(your application's listener);
 

Version:
$Id: MessageEventSource.java 1914 2007-03-01 02:20:44Z schulte2005 $
Author:
Christian Schulte

Method Summary
 void addMessageListener(MessageListener listener)
          Adds a to the listener list.
 MessageListener[] getMessageListeners()
          Accessor to all currently registered s.
 void removeMessageListener(MessageListener listener)
          Removes a from the listener list.
 

Method Detail

addMessageListener

public void addMessageListener(MessageListener listener)
Adds a to the listener list.

Parameters:
listener - The listener to be added to the listener list.
Throws:
NullPointerException - if is .

getMessageListeners

public MessageListener[] getMessageListeners()
Accessor to all currently registered s.

Returns:
all currently registered s.

removeMessageListener

public void removeMessageListener(MessageListener listener)
Removes a from the listener list.

Parameters:
listener - The listener to be removed from the listener list.
Throws:
NullPointerException - if is .


Copyright © 2005-2007 jDTAUS. All Rights Reserved.