org.apache.tapestry5.ioc
Interface OperationTracker

All Known Subinterfaces:
ComponentPageElementResources, InternalRegistry
All Known Implementing Classes:
ComponentPageElementResourcesImpl, OperationTrackerImpl, PerThreadOperationTracker, QuietOperationTracker, RegistryImpl

public interface OperationTracker

Used to track some set of operations in such a way that a failure (a thrown RuntimeException) will be logged along with a trace of the stack of operations.


Method Summary
<T> T
invoke(String description, Invokable<T> operation)
          Executes the operation, returning its value.
 void run(String description, Runnable operation)
          Executes the operation.
 

Method Detail

run

void run(String description,
         Runnable operation)
Executes the operation.

Parameters:
description - used if there is an exception
operation - to execute

invoke

<T> T invoke(String description,
             Invokable<T> operation)
Executes the operation, returning its value.

Parameters:
description - used if there is an exception
operation - to invoke
Returns:
result of operation


Copyright © 2003-2012 The Apache Software Foundation.