Interface TxConfigFactory<T extends java.lang.annotation.Annotation>
-
- Type Parameters:
T- annotation type
- All Known Implementing Classes:
InTransactionTxConfigFactory
public interface TxConfigFactory<T extends java.lang.annotation.Annotation>Factory converts transaction parameters from annotation into common tx config object. Declared withTxConfigSupportdirectly on target annotation class.IMPORTANT: Factory is obtained from guice context so prefer annotating it with
Singletonto avoid redundant instantiations (if factory is stateless).Resolved config is cached for target method to avoid duplicate resolutions.
- Since:
- 18.09.2018
- See Also:
TransactionalInterceptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TxConfigbuild(T annotation)
-