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.ExecutorType;
20
21 public class DefaultExecutorTypeConfigurationSetting implements ConfigurationSetting {
22
23 private final ExecutorType executorType;
24
25 public DefaultExecutorTypeConfigurationSetting(final ExecutorType executorType) {
26 this.executorType = executorType;
27 }
28
29 @Override
30 public void applyConfigurationSetting(Configuration configuration) {
31 configuration.setDefaultExecutorType(executorType);
32 }
33 }