Package jadex.commons.future
Class DefaultResultListener<E>
- java.lang.Object
-
- jadex.commons.future.DefaultResultListener<E>
-
- All Implemented Interfaces:
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 Summary
Constructors Constructor Description DefaultResultListener()
Create a new listener.DefaultResultListener(java.util.logging.Logger logger)
Create a new listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commandAvailable(java.lang.Object command)
Called when a command is available.void
exceptionOccurred(java.lang.Exception exception)
Called when an exception occurred.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadex.commons.future.IResultListener
resultAvailable
-
-
-
-
Method Detail
-
exceptionOccurred
public void exceptionOccurred(java.lang.Exception exception)
Called when an exception occurred.- Specified by:
exceptionOccurred
in interfaceIResultListener<E>
- Parameters:
exception
- The exception.
-
commandAvailable
public void commandAvailable(java.lang.Object command)
Called when a command is available.- Specified by:
commandAvailable
in interfaceIFutureCommandResultListener<E>
-
-