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> T
As withOperationTracker.run(String, Runnable)
, but the operation may return a value.<T> T
perform
(String description, IOOperation<T> operation) As withOperationTracker.invoke(String, Invokable)
, but the operation may throw anIOException
.void
Executes the operation.
-
Constructor Details
-
QuietOperationTracker
public QuietOperationTracker()
-
-
Method Details
-
run
Description copied from interface:OperationTracker
Executes the operation. If the operation throws aRuntimeException
it will be logged and rethrown wrapped as aOperationException
.- Specified by:
run
in interfaceOperationTracker
- Parameters:
description
- used if there is an exceptionoperation
- to execute
-
invoke
Description copied from interface:OperationTracker
As withOperationTracker.run(String, Runnable)
, but the operation may return a value.- Specified by:
invoke
in interfaceOperationTracker
- Parameters:
description
- used if there is an exceptionoperation
- to invoke- Returns:
- result of operation
-
perform
Description copied from interface:OperationTracker
As withOperationTracker.invoke(String, Invokable)
, but the operation may throw anIOException
.- Specified by:
perform
in interfaceOperationTracker
- Parameters:
description
- used if there is an exception (outside of IOException)operation
- to perform- Returns:
- result of operation
- Throws:
IOException
-