1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.mybatis.guice.configuration.settings;
17
18 import org.apache.ibatis.session.Configuration;
19 import org.apache.ibatis.session.LocalCacheScope;
20
21 public class LocalCacheScopeConfigurationSetting implements ConfigurationSetting {
22
23 private final LocalCacheScope localCacheScope;
24
25 public LocalCacheScopeConfigurationSetting(final LocalCacheScope localCacheScope) {
26 this.localCacheScope = localCacheScope;
27 }
28
29 @Override
30 public void applyConfigurationSetting(Configuration configuration) {
31 configuration.setLocalCacheScope(localCacheScope);
32 }
33
34 }