- All Known Implementing Classes:
public interface HibernateTransactionDecoratorService that can create an interceptor that wraps around a service implementation. After invoking service methods marked by
CommitAfterthe 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 the
HibernateTransactionAdvisor(from a service advisor method) instead.
buildBuilds a transaction interceptor instance around the delegate.
- Type Parameters:
serviceInterface- interface implemented by the delegate
delegate- existing object to be wrapped
serviceId- id of service
- a new object implementing the interface that can be used in place of the delegate, providing transactional behavior