Class QuietOperationTracker
-
- org.apache.tapestry5.ioc.internal.QuietOperationTracker
-
- All Implemented Interfaces:
OperationTracker
public class QuietOperationTracker extends implements OperationTracker
Minimal implementation used for testing, that does no logging, tracking, or exception catching.
-
-
Constructor Summary
Constructors Constructor Description QuietOperationTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
description, Invokable<T> operation)
As withOperationTracker.run(String, Runnable)
, but the operation may return a value.<T> T
description, IOOperation<T> operation)
As with .void
description, operation)
Executes the operation.
-
-
-
Constructor Detail
-
QuietOperationTracker
public QuietOperationTracker()
-
-
Method Detail
-
run
public void description, operation)
Description copied from interface:OperationTracker
Executes the operation. If the operation throws a 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
public <T> T description, Invokable<T> operation)
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
public <T> T description, IOOperation<T> operation) throws
Description copied from interface:OperationTracker
As with .- Specified by:
perform
in interfaceOperationTracker
- Parameters:
description
- used if there is an exception (outside of IOException)operation
- to perform- Returns:
- result of operation
- Throws:
-
-