1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.builder;
17
18 import java.util.List;
19 import java.util.Properties;
20
21 import org.apache.ibatis.reflection.factory.DefaultObjectFactory;
22
23 public class ExampleObjectFactory extends DefaultObjectFactory {
24 private static final long serialVersionUID = 1L;
25 private Properties properties;
26
27 @Override
28 public <T> T create(Class<T> type) {
29 return super.<T>create(type);
30 }
31
32 @Override
33 public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
34 return super.<T>create(type, constructorArgTypes, constructorArgs);
35 }
36
37 @Override
38 public void setProperties(Properties properties) {
39 super.setProperties(properties);
40 this.properties = properties;
41 }
42
43 public Properties getProperties() {
44 return properties;
45 }
46
47 }