Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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(java.lang.String description, Invokable<T> operation)` Executes the operation, returning its value.
`void` | `run(java.lang.String description, java.lang.Runnable operation)` Executes the operation.

Method Detail

### run

    void run(java.lang.String description,
             java.lang.Runnable operation)

  Executes the operation.

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

### invoke

    <T> T invoke(java.lang.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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.