T - Type of element that the operation is applied topublic class ContextOperationAdaptor<T> extends ContextAdaptor<Operation<T>,T,T> implements Operation<Context>
extract, inner, insert| Constructor and Description | 
|---|
| ContextOperationAdaptor(Operation<T> inner,
                       ContextExtractor<T> extract)Construct with the given operation and extractor | 
| ContextOperationAdaptor(Operation<T> inner,
                       String extract)Construct with the given operation. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <IN> Operation<Context> | create(Operation<IN> operation,
      String extract)Helper to create a new  ContextOperationAdaptor. | 
| void | perform(Context object)Perform the operation on the given object. | 
public ContextOperationAdaptor(Operation<T> inner, ContextExtractor<T> extract)
inner - the operationextract - the extractorpublic ContextOperationAdaptor(Operation<T> inner, String extract)
KeyContextExtractor created from the given key.inner - the operationextract - the keypublic void perform(Context object)
Operationpublic static <IN> Operation<Context> create(Operation<IN> operation, String extract)
ContextOperationAdaptor.operation - the operationextract - the key to extract fromContextOperationAdaptor(Operation,
      ContextExtractor)