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

java.lang.Object
  extended by org.omnaest.utils.operation.special.OperationProducingExceptionHandledResult<RESULT,PARAMETER>
Type Parameters:
RESULT -
PARAMETER -
All Implemented Interfaces:
Operation<ExceptionHandledResult<RESULT>,PARAMETER>

public class OperationProducingExceptionHandledResult<RESULT,PARAMETER>
extends Object
implements Operation<ExceptionHandledResult<RESULT>,PARAMETER>

Operation which is wrapped with a try catch block catching all Exception derivative types. As result a ExceptionHandledResult is returned.

Author:
Omnaest

Field Summary
protected  Operation<RESULT,PARAMETER> operation
           
 
Constructor Summary
OperationProducingExceptionHandledResult(Operation<RESULT,PARAMETER> operation)
           
 
Method Summary
 ExceptionHandledResult<RESULT> execute(PARAMETER parameter)
           
 
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
Constructor Detail

OperationProducingExceptionHandledResult

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

execute

public ExceptionHandledResult<RESULT> execute(PARAMETER parameter)
Specified by:
execute in interface Operation<ExceptionHandledResult<RESULT>,PARAMETER>


Copyright © 2013. All Rights Reserved.