org.omnaest.utils.operation.special
Class OperationExceptionHandled<RESULT,PARAMETER>
java.lang.Object
org.omnaest.utils.operation.special.OperationExceptionHandled<RESULT,PARAMETER>
- Type Parameters:
RESULT - PARAMETER -
- All Implemented Interfaces:
- Operation<RESULT,PARAMETER>
public class OperationExceptionHandled<RESULT,PARAMETER>
- extends Object
- implements Operation<RESULT,PARAMETER>
Operation which uses an internal ExceptionHandlerManager to handle occurring Exceptions. With
getExceptionHandlerRegistration() any ExceptionHandler instances can register themselves to be notified for
any occuring Exception
- Author:
- Omnaest
- See Also:
OperationExceptionHandledResult
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
operation
protected final Operation<RESULT,PARAMETER> operation
exceptionHandlerManager
protected final ExceptionHandlerManager exceptionHandlerManager
OperationExceptionHandled
public OperationExceptionHandled(Operation<RESULT,PARAMETER> operation)
- Parameters:
operation - - See Also:
OperationExceptionHandled
execute
public RESULT execute(PARAMETER parameter)
- Specified by:
execute in interface Operation<RESULT,PARAMETER>
getExceptionHandlerRegistration
public ExceptionHandlerManager.ExceptionHandlerRegistration getExceptionHandlerRegistration()
- Returns:
- See Also:
ExceptionHandlerManager.getExceptionHandlerRegistration()
Copyright © 2013. All Rights Reserved.