org.omnaest.utils.operation.decorator
Class OperationDecorator<RESULT,PARAMETER>

java.lang.Object
  extended by org.omnaest.utils.operation.decorator.OperationDecorator<RESULT,PARAMETER>
Type Parameters:
RESULT -
PARAMETER -
All Implemented Interfaces:
Operation<RESULT,PARAMETER>
Direct Known Subclasses:
OperationDecoratorReentrantLock

public abstract class OperationDecorator<RESULT,PARAMETER>
extends Object
implements Operation<RESULT,PARAMETER>

Abstract decorator for an Operation

Author:
Omnaest
See Also:
Operation

Field Summary
protected  Operation<RESULT,PARAMETER> operation
           
 
Constructor Summary
OperationDecorator(Operation<RESULT,PARAMETER> operation)
           
 
Method Summary
 void setOperation(Operation<RESULT,PARAMETER> operation)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omnaest.utils.operation.Operation
execute
 

Field Detail

operation

protected Operation<RESULT,PARAMETER> operation
Constructor Detail

OperationDecorator

public OperationDecorator(Operation<RESULT,PARAMETER> operation)
Parameters:
operation -
Method Detail

setOperation

public void setOperation(Operation<RESULT,PARAMETER> operation)
Parameters:
operation -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.