Class XMLConfigBuilder
java.lang.Object
org.apache.ibatis.builder.BaseBuilder
org.apache.ibatis.builder.xml.XMLConfigBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate final ReflectorFactoryprivate booleanprivate final XPathParserFields inherited from class BaseBuilder
configuration, typeAliasRegistry, typeHandlerRegistry -
Constructor Summary
ConstructorsModifierConstructorDescriptionXMLConfigBuilder(InputStream inputStream) XMLConfigBuilder(InputStream inputStream, String environment) XMLConfigBuilder(InputStream inputStream, String environment, Properties props) XMLConfigBuilder(Reader reader) XMLConfigBuilder(Reader reader, String environment) XMLConfigBuilder(Reader reader, String environment, Properties props) XMLConfigBuilder(Class<? extends Configuration> configClass, InputStream inputStream, String environment, Properties props) XMLConfigBuilder(Class<? extends Configuration> configClass, Reader reader, String environment, Properties props) privateXMLConfigBuilder(Class<? extends Configuration> configClass, XPathParser parser, String environment, Properties props) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddatabaseIdProviderElement(XNode context) private DataSourceFactorydataSourceElement(XNode context) private voidenvironmentsElement(XNode context) private booleanprivate voidloadCustomLogImpl(Properties props) private voidloadCustomVfsImpl(Properties props) private voidmappersElement(XNode context) private static ConfigurationnewConfig(Class<? extends Configuration> configClass) private voidobjectFactoryElement(XNode context) private voidobjectWrapperFactoryElement(XNode context) parse()private voidparseConfiguration(XNode root) private voidpluginsElement(XNode context) private voidpropertiesElement(XNode context) private voidreflectorFactoryElement(XNode context) private PropertiessettingsAsProperties(XNode context) private voidsettingsElement(Properties props) private TransactionFactorytransactionManagerElement(XNode context) private voidtypeAliasesElement(XNode context) private voidtypeHandlersElement(XNode context) Methods inherited from class BaseBuilder
booleanValueOf, createInstance, getConfiguration, integerValueOf, parseExpression, resolveAlias, resolveClass, resolveJdbcType, resolveParameterMode, resolveResultSetType, resolveTypeHandler, resolveTypeHandler, stringSetValueOf
-
Field Details
-
parsed
private boolean parsed -
parser
-
environment
-
localReflectorFactory
-
-
Constructor Details
-
XMLConfigBuilder
-
XMLConfigBuilder
-
XMLConfigBuilder
-
XMLConfigBuilder
public XMLConfigBuilder(Class<? extends Configuration> configClass, Reader reader, String environment, Properties props) -
XMLConfigBuilder
-
XMLConfigBuilder
-
XMLConfigBuilder
-
XMLConfigBuilder
public XMLConfigBuilder(Class<? extends Configuration> configClass, InputStream inputStream, String environment, Properties props) -
XMLConfigBuilder
private XMLConfigBuilder(Class<? extends Configuration> configClass, XPathParser parser, String environment, Properties props)
-
-
Method Details
-
parse
-
parseConfiguration
-
settingsAsProperties
-
loadCustomVfsImpl
- Throws:
ClassNotFoundException
-
loadCustomLogImpl
-
typeAliasesElement
-
pluginsElement
-
objectFactoryElement
-
objectWrapperFactoryElement
-
reflectorFactoryElement
-
propertiesElement
-
settingsElement
-
environmentsElement
-
databaseIdProviderElement
-
transactionManagerElement
- Throws:
Exception
-
dataSourceElement
- Throws:
Exception
-
typeHandlersElement
-
mappersElement
-
isSpecifiedEnvironment
-
newConfig
-