Package ru.vyarus.guicey.jdbi.module
Class JdbiModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- ru.vyarus.guicey.jdbi.module.JdbiModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class JdbiModule extends com.google.inject.AbstractModuleJdbi support guice module. BindsDBIfor injection. Introduce unit of work concept for JDBI: thread-bound handle must be created in order to access db (work with db only inside unit of work). Assumed that repositories will be installed withRepositoryInstaller, which will customize instances to support unit of work. Also, customized instances support guice aop.It is assumed that in most cases unit of work will be defined together with transaction using transaction annotation (on or more). By default, only
InTransactionannotation will be recognized.- Since:
- 05.12.2016
-
-
Constructor Summary
Constructors Constructor Description JdbiModule(org.skife.jdbi.v2.DBI jdbi, java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> txAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure()-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-