Package jadex.bridge
Class ComponentResultListener<E>
- java.lang.Object
- 
- jadex.bridge.ComponentResultListener<E>
 
- 
- All Implemented Interfaces:
- IFunctionalExceptionListener,- IFunctionalResultListener<E>,- IFutureCommandResultListener<E>,- IResultListener<E>,- IUndoneResultListener<E>
 - Direct Known Subclasses:
- IntermediateComponentResultListener
 
 public class ComponentResultListener<E> extends java.lang.Object implements IResultListener<E>, IFutureCommandResultListener<E>, IUndoneResultListener<E> The result listener for executing listener invocations as a component step.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IExternalAccessaccessThe external access.protected IInternalAccesscomponentThe component.protected IResultListener<E>listenerThe result listener.protected booleanundoneThe undone flag.
 - 
Constructor SummaryConstructors Constructor Description ComponentResultListener(IFunctionalResultListener<E> listener, IFunctionalExceptionListener exceptionListener, IExternalAccess access)Create a new component result listener.ComponentResultListener(IFunctionalResultListener<E> listener, IFunctionalExceptionListener exceptionListener, IInternalAccess component)Create a new component result listener.ComponentResultListener(IResultListener<E> listener, IExternalAccess access)Create a new component result listener.ComponentResultListener(IResultListener<E> listener, IInternalAccess component)Create a new component result 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.voidexceptionOccurredIfUndone(java.lang.Exception exception)Called when an exception occurred.voidresultAvailable(E result)Called when the result is available.voidresultAvailableIfUndone(E result)Called when the result is available.
 
- 
- 
- 
Field Detail- 
listenerprotected IResultListener<E> listener The result listener.
 - 
componentprotected IInternalAccess component The component.
 - 
accessprotected IExternalAccess access The external access.
 - 
undoneprotected boolean undone The undone flag.
 
- 
 - 
Constructor Detail- 
ComponentResultListenerpublic ComponentResultListener(IResultListener<E> listener, IInternalAccess component) Create a new component result listener.- Parameters:
- listener- The listener.
- adapter- The adapter.
 
 - 
ComponentResultListenerpublic ComponentResultListener(IResultListener<E> listener, IExternalAccess access) Create a new component result listener.- Parameters:
- listener- The listener.
- adapter- The adapter.
 
 - 
ComponentResultListenerpublic ComponentResultListener(IFunctionalResultListener<E> listener, IFunctionalExceptionListener exceptionListener, IExternalAccess access) Create a new component result listener.- Parameters:
- listener- The functional listener.
- exceptionListener- The functional exception listener. Maybe- null, which will lead to default exception logging.
- access- External access of the component to schedule the listener methods on.
 
 - 
ComponentResultListenerpublic ComponentResultListener(IFunctionalResultListener<E> listener, IFunctionalExceptionListener exceptionListener, IInternalAccess component) Create a new component result listener.- Parameters:
- listener- The functional listener.
- exceptionListener- The functional exception listener. Maybe- null, which will lead to default exception logging.
- adapter- The adapter. to schedule the listener methods on.
 
 
- 
 - 
Method Detail- 
resultAvailablepublic void resultAvailable(E result) Called when the result is available.- Specified by:
- resultAvailablein interface- IFunctionalResultListener<E>
- Parameters:
- result- The result.
 
 - 
exceptionOccurredpublic void exceptionOccurred(java.lang.Exception exception) Called when an exception occurred.- Specified by:
- exceptionOccurredin interface- IFunctionalExceptionListener
- Parameters:
- exception- The exception.
 
 - 
resultAvailableIfUndonepublic void resultAvailableIfUndone(E result) Called when the result is available.- Specified by:
- resultAvailableIfUndonein interface- IUndoneResultListener<E>
- Parameters:
- result- The result.
 
 - 
exceptionOccurredIfUndonepublic void exceptionOccurredIfUndone(java.lang.Exception exception) Called when an exception occurred.- Specified by:
- exceptionOccurredIfUndonein interface- IUndoneResultListener<E>
- Parameters:
- exception- The exception.
 
 - 
commandAvailablepublic void commandAvailable(java.lang.Object command) Called when a command is available.- Specified by:
- commandAvailablein interface- IFutureCommandResultListener<E>
 
 
- 
 
-