org.apache.tapestry5.ioc.internal
Class PerThreadOperationTracker
java.lang.Object
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker
- All Implemented Interfaces:
- OperationTracker
public class PerThreadOperationTracker
- extends Object
- implements OperationTracker
Manages a per-thread OperationTracker using a ThreadLocal.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerThreadOperationTracker
public PerThreadOperationTracker(org.slf4j.Logger logger)
run
public void run(String description,
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(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 © 2003-2012 The Apache Software Foundation.