You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by cb...@apache.org on 2010/01/23 22:49:26 UTC
svn commit: r902497 -
/ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/session/Configuration.java
Author: cbegin
Date: Sat Jan 23 21:49:26 2010
New Revision: 902497
URL: http://svn.apache.org/viewvc?rev=902497&view=rev
Log:
Made all private members of Configuration protected.
Modified:
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/session/Configuration.java
Modified: ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/session/Configuration.java
URL: http://svn.apache.org/viewvc/ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/session/Configuration.java?rev=902497&r1=902496&r2=902497&view=diff
==============================================================================
--- ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/session/Configuration.java (original)
+++ ibatis/java/ibatis-3/trunk/ibatis-3-core/src/main/java/org/apache/ibatis/session/Configuration.java Sat Jan 23 21:49:26 2010
@@ -37,32 +37,32 @@
public class Configuration {
- private Environment environment;
+ protected Environment environment;
- private boolean lazyLoadingEnabled = false;
- private boolean multipleResultSetsEnabled = true;
- private boolean useGeneratedKeys = false;
- private boolean useColumnLabel = true;
- private boolean cacheEnabled = true;
- private Integer defaultStatementTimeout;
- private ExecutorType defaultExecutorType = ExecutorType.SIMPLE;
- private AutoMappingBehavior autoMappingBehavior = AutoMappingBehavior.PARTIAL;
-
- private Properties variables = new Properties();
- private ObjectFactory objectFactory = new DefaultObjectFactory();
- private ObjectWrapperFactory objectWrapperFactory = new DefaultObjectWrapperFactory();
- private MapperRegistry mapperRegistry = new MapperRegistry(this);
-
- private final InterceptorChain interceptorChain = new InterceptorChain();
- private final TypeHandlerRegistry typeHandlerRegistry = new TypeHandlerRegistry();
- private final TypeAliasRegistry typeAliasRegistry = new TypeAliasRegistry();
- private final Map<String, MappedStatement> mappedStatements = new StrictMap<String, MappedStatement>("Mapped Statements collection");
- private final Map<String, Cache> caches = new StrictMap<String, Cache>("Caches collection");
- private final Map<String, ResultMap> resultMaps = new StrictMap<String, ResultMap>("Result Maps collection");
- private final Map<String, ParameterMap> parameterMaps = new StrictMap<String, ParameterMap>("Parameter Maps collection");
- private final Map<String, KeyGenerator> keyGenerators = new StrictMap<String, KeyGenerator>("Key Generators collection");
+ protected boolean lazyLoadingEnabled = false;
+ protected boolean multipleResultSetsEnabled = true;
+ protected boolean useGeneratedKeys = false;
+ protected boolean useColumnLabel = true;
+ protected boolean cacheEnabled = true;
+ protected Integer defaultStatementTimeout;
+ protected ExecutorType defaultExecutorType = ExecutorType.SIMPLE;
+ protected AutoMappingBehavior autoMappingBehavior = AutoMappingBehavior.PARTIAL;
+
+ protected Properties variables = new Properties();
+ protected ObjectFactory objectFactory = new DefaultObjectFactory();
+ protected ObjectWrapperFactory objectWrapperFactory = new DefaultObjectWrapperFactory();
+ protected MapperRegistry mapperRegistry = new MapperRegistry(this);
+
+ protected final InterceptorChain interceptorChain = new InterceptorChain();
+ protected final TypeHandlerRegistry typeHandlerRegistry = new TypeHandlerRegistry();
+ protected final TypeAliasRegistry typeAliasRegistry = new TypeAliasRegistry();
+ protected final Map<String, MappedStatement> mappedStatements = new StrictMap<String, MappedStatement>("Mapped Statements collection");
+ protected final Map<String, Cache> caches = new StrictMap<String, Cache>("Caches collection");
+ protected final Map<String, ResultMap> resultMaps = new StrictMap<String, ResultMap>("Result Maps collection");
+ protected final Map<String, ParameterMap> parameterMaps = new StrictMap<String, ParameterMap>("Parameter Maps collection");
+ protected final Map<String, KeyGenerator> keyGenerators = new StrictMap<String, KeyGenerator>("Key Generators collection");
- private final Set<String> loadedResources = new HashSet<String>();
+ protected final Set<String> loadedResources = new HashSet<String>();
public Configuration(Environment environment) {
this();
@@ -357,7 +357,7 @@
return mappedStatements.containsKey(statementName);
}
- private static class StrictMap<J, K> extends HashMap<J, K> {
+ protected static class StrictMap<J, K> extends HashMap<J, K> {
private String name;