org.jdtaus.core.lang
Interface ExceptionEventSource


public interface ExceptionEventSource

ExceptionEventSource is implemented by classes firing ExceptionEvents.

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

 ExceptionEventSource source =
     (ExceptionEventSource) ContainerFactory.getContainer().
     getObject( ExceptionEventSource.class );

 source.addExceptionListener(your application's listener);
 

Version:
$Id: ExceptionEventSource.java 8044 2009-07-02 01:29:05Z schulte2005 $
Author:
Christian Schulte

Method Summary
 void addExceptionListener(ExceptionListener listener)
          Adds an ExceptionListener to the listener list.
 ExceptionListener[] getExceptionListeners()
          Gets all currently registered ExceptionListeners.
 void removeExceptionListener(ExceptionListener listener)
          Removes a ExceptionListener from the listener list.
 

Method Detail

addExceptionListener

void addExceptionListener(ExceptionListener listener)
Adds an ExceptionListener to the listener list.

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

getExceptionListeners

ExceptionListener[] getExceptionListeners()
Gets all currently registered ExceptionListeners.

Returns:
all currently registered ExceptionListeners.

removeExceptionListener

void removeExceptionListener(ExceptionListener listener)
Removes a ExceptionListener from the listener list.

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


Copyright © 2005-2009 jDTAUS. All Rights Reserved.