Class QuietOperationTracker
java.lang.Object
org.apache.tapestry5.ioc.internal.QuietOperationTracker
- All Implemented Interfaces:
OperationTracker
Minimal implementation used for testing, that does no logging, tracking, or exception catching.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tapestry5.ioc.OperationTracker
OperationTracker.NonLoggableException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TAs withOperationTracker.run(String, Runnable), but the operation may return a value.<T> Tperform(String description, IOOperation<T> operation) As withOperationTracker.invoke(String, Invokable), but the operation may throw anIOException.voidExecutes the operation.
-
Constructor Details
-
QuietOperationTracker
public QuietOperationTracker()
-
-
Method Details
-
run
Description copied from interface:OperationTrackerExecutes the operation. If the operation throws aRuntimeExceptionit will be logged and rethrown wrapped as aOperationException.- Specified by:
runin interfaceOperationTracker- Parameters:
description- used if there is an exceptionoperation- to execute
-
invoke
Description copied from interface:OperationTrackerAs withOperationTracker.run(String, Runnable), but the operation may return a value.- Specified by:
invokein interfaceOperationTracker- Parameters:
description- used if there is an exceptionoperation- to invoke- Returns:
- result of operation
-
perform
Description copied from interface:OperationTrackerAs withOperationTracker.invoke(String, Invokable), but the operation may throw anIOException.- Specified by:
performin interfaceOperationTracker- Parameters:
description- used if there is an exception (outside of IOException)operation- to perform- Returns:
- result of operation
- Throws:
IOException
-