|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mybatis.guice.configuration.ConfigurationProvider
public final class ConfigurationProvider
Provides the myBatis Configuration.
| Constructor Summary | |
|---|---|
ConfigurationProvider(org.apache.ibatis.mapping.Environment environment)
Creates a new myBatis Configuration from the Environment. |
|
| Method Summary | |
|---|---|
org.apache.ibatis.session.Configuration |
get()
|
void |
registerAlias(Map<String,Class<?>> typeAliases)
Adds the user defined type aliases to the myBatis Configuration. |
void |
registerMappers(Set<Class<?>> mapperClasses)
Adds the user defined Mapper classes to the myBatis Configuration. |
void |
registerPlugins(Set<org.apache.ibatis.plugin.Interceptor> plugins)
Registers the user defined plugins interceptors to the myBatis Configuration. |
void |
registerTypeHandlers(Map<Class<?>,org.apache.ibatis.type.TypeHandler> typeHandlers)
Adds the user defined type handlers to the myBatis Configuration. |
void |
setLazyLoadingEnabled(boolean lazyLoadingEnabled)
|
void |
setObjectFactory(org.apache.ibatis.reflection.factory.ObjectFactory objectFactory)
Adds the user defined ObjectFactory to the myBatis Configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public ConfigurationProvider(org.apache.ibatis.mapping.Environment environment)
environment - the needed myBatis Environment.| Method Detail |
|---|
@Inject(optional=true) public void setLazyLoadingEnabled(boolean lazyLoadingEnabled)
@Inject(optional=true) public void registerAlias(Map<String,Class<?>> typeAliases)
typeAliases - the user defined type aliases.@Inject(optional=true) public void registerMappers(Set<Class<?>> mapperClasses)
mapperClasses - the user defined Mapper classes.@Inject(optional=true) public void registerTypeHandlers(Map<Class<?>,org.apache.ibatis.type.TypeHandler> typeHandlers)
typeHandlers - the user defined type handlers.@Inject(optional=true) public void setObjectFactory(org.apache.ibatis.reflection.factory.ObjectFactory objectFactory)
objectFactory - @Inject(optional=true) public void registerPlugins(Set<org.apache.ibatis.plugin.Interceptor> plugins)
plugins - the user defined plugins interceptors.public org.apache.ibatis.session.Configuration get()
get in interface com.google.inject.Provider<org.apache.ibatis.session.Configuration>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||