org.omnaest.utils.operation.special
Class OperationExceptionHandled<RESULT,PARAMETER>

java.lang.Object
  extended by 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

Field Summary
protected  ExceptionHandlerManager exceptionHandlerManager
           
protected  Operation<RESULT,PARAMETER> operation
           
 
Constructor Summary
OperationExceptionHandled(Operation<RESULT,PARAMETER> operation)
           
 
Method Summary
 RESULT execute(PARAMETER parameter)
           
 ExceptionHandlerManager.ExceptionHandlerRegistration getExceptionHandlerRegistration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operation

protected final Operation<RESULT,PARAMETER> operation

exceptionHandlerManager

protected final ExceptionHandlerManager exceptionHandlerManager
Constructor Detail

OperationExceptionHandled

public OperationExceptionHandled(Operation<RESULT,PARAMETER> operation)
Parameters:
operation -
See Also:
OperationExceptionHandled
Method Detail

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.