Interface TxConfigFactory<T extends Annotation>
- Type Parameters:
T- annotation type
- All Known Implementing Classes:
InTransactionTxConfigFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory converts transaction parameters from annotation into common tx config object.
Declared with
TxConfigSupport directly on target annotation class.
IMPORTANT: Factory is obtained from guice context so prefer annotating it with Singleton
to avoid redundant instantiations (if factory is stateless).
Resolved config is cached for target method to avoid duplicate resolutions.
- Since:
- 18.09.2018
- See Also:
-
Method Summary
-
Method Details
-
build
- Parameters:
annotation- annotation to read configuration from- Returns:
- tx config object (may be null)
-