org.compass.core.transaction.context
Class TransactionalCallable<T>

java.lang.Object
  extended by org.compass.core.transaction.context.TransactionalCallable<T>
All Implemented Interfaces:
Callable<T>

public class TransactionalCallable<T>
extends Object
implements Callable<T>

A wrapper around a delegate callable that will execute it within a transactional context.

Author:
kimchy

Constructor Summary
TransactionalCallable(TransactionContext transactionContext, Callable<T> delegate)
           
 
Method Summary
 T call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalCallable

public TransactionalCallable(TransactionContext transactionContext,
                             Callable<T> delegate)
Method Detail

call

public T call()
       throws Exception
Specified by:
call in interface Callable<T>
Throws:
Exception


Copyright (c) 2004-2008 The Compass Project.