Package org.apache.tapestry5.hibernate
Interface HibernateTransactionDecorator
-
- All Known Implementing Classes:
HibernateTransactionDecoratorImpl
public interface HibernateTransactionDecorator
Service that can create an interceptor that wraps around a service implementation. After invoking service methods marked byCommitAfter
the current transaction is committed. Declared exceptions will also commit the transaction; runtime exceptions will the transaction. It is recommended that you switch from the use of decoration to the use of advice; use theHibernateTransactionAdvisor
(from a service advisor method) instead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
build(Class<T> serviceInterface, T delegate, String serviceId)
Builds a transaction interceptor instance around the delegate.
-
-
-
Method Detail
-
build
<T> T build(Class<T> serviceInterface, T delegate, String serviceId)
Builds a transaction interceptor instance around the delegate.- Type Parameters:
T
-- Parameters:
serviceInterface
- interface implemented by the delegatedelegate
- existing object to be wrappedserviceId
- id of service- Returns:
- a new object implementing the interface that can be used in place of the delegate, providing transactional behavior
-
-