Package jadex.commons.future
Class DefaultResultListener<E>
- java.lang.Object
- 
- jadex.commons.future.DefaultResultListener<E>
 
- 
- All Implemented Interfaces:
- IFunctionalExceptionListener,- IFunctionalResultListener<E>,- IFutureCommandResultListener<E>,- IResultListener<E>
 - Direct Known Subclasses:
- IntermediateDefaultResultListener,- SwingDefaultResultListener
 
 public abstract class DefaultResultListener<E> extends java.lang.Object implements IFutureCommandResultListener<E> The default listener for logging exceptions as warning. Is used when exceptions can de ignored.
- 
- 
Constructor SummaryConstructors Constructor Description DefaultResultListener()Create a new listener.DefaultResultListener(java.util.logging.Logger logger)Create a new listener.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommandAvailable(java.lang.Object command)Called when a command is available.voidexceptionOccurred(java.lang.Exception exception)Called when an exception occurred.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jadex.commons.future.IFunctionalResultListenerresultAvailable
 
- 
 
- 
- 
- 
Method Detail- 
exceptionOccurredpublic void exceptionOccurred(java.lang.Exception exception) Called when an exception occurred.- Specified by:
- exceptionOccurredin interface- IFunctionalExceptionListener
- Parameters:
- exception- The exception.
 
 - 
commandAvailablepublic void commandAvailable(java.lang.Object command) Called when a command is available.- Specified by:
- commandAvailablein interface- IFutureCommandResultListener<E>
 
 
- 
 
-