|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.skife.intercept.interceptors.tx.TransactionInterceptor
Provides container managed transactions for arbitrary containers and transaction types.
If the intercepted class responds to setTransaction(Transaction)
than the current transaction will be populated onto it before the stack is
yielded.
TransactionFactory
,
Transaction
Constructor Summary | |
TransactionInterceptor()
Designed for Type 2 IoC - setTransactionFactory(...) must be called |
|
TransactionInterceptor(org.skife.intercept.interceptors.tx.TransactionFactory factory)
Designed for Type 3 IoC |
Method Summary | |
java.lang.Object |
intercept(java.lang.Object base,
java.lang.reflect.Method method,
java.lang.Object[] args,
org.skife.intercept.InterceptorStack stack)
Do the work |
void |
setTransactionFactory(org.skife.intercept.interceptors.tx.TransactionFactory factory)
Specify the transaction factory implementation to use |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransactionInterceptor()
public TransactionInterceptor(org.skife.intercept.interceptors.tx.TransactionFactory factory)
factory
- Transactionfactory to use.Method Detail |
public void setTransactionFactory(org.skife.intercept.interceptors.tx.TransactionFactory factory)
factory
- public java.lang.Object intercept(java.lang.Object base, java.lang.reflect.Method method, java.lang.Object[] args, org.skife.intercept.InterceptorStack stack) throws java.lang.Throwable
intercept
in interface Interceptor
base
- A reference to the base object being interceptedmethod
- A reference to the Method being interceptedargs
- The invocation argumentsstack
- The InterceptorStack
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |