org.apache.tapestry5.ioc.internal
Class QuietOperationTracker
java.lang.Object
org.apache.tapestry5.ioc.internal.QuietOperationTracker
- All Implemented Interfaces:
- OperationTracker
public class QuietOperationTracker
- extends java.lang.Object
- implements OperationTracker
Minimal implementation used for testing, that does no logging, tracking, or exception catching.
|
Method Summary |
|
invoke(java.lang.String description,
Invokable<T> operation)
Executes the operation, returning its value. |
void |
run(java.lang.String description,
java.lang.Runnable operation)
Executes the operation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuietOperationTracker
public QuietOperationTracker()
run
public void run(java.lang.String description,
java.lang.Runnable operation)
- Description copied from interface:
OperationTracker
- Executes the operation.
- Specified by:
run in interface OperationTracker
- Parameters:
description - used if there is an exceptionoperation - to execute
invoke
public <T> T invoke(java.lang.String description,
Invokable<T> operation)
- Description copied from interface:
OperationTracker
- Executes the operation, returning its value.
- Specified by:
invoke in interface OperationTracker
- Parameters:
description - used if there is an exceptionoperation - to invoke
- Returns:
- result of operation
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.