public class HierarchicalXMLConfigBuilder
extends org.apache.ibatis.builder.BaseBuilder
ResourceLoader
that will be used to load the resources specified in the mapper's resource.
By using the resource.dialect placeholder with hierarchical resource loading, different resource files can be picked up for different dialects. This reduces duplication when supporting multiple database configurations.
<configuration> <mappers> <mapper resource="org/x/y/#resource.dialect#/View1.xml"/> <mapper resource="org/x/y/#resource.dialect#/View2.xml"/> </mappers> </configuration> Much of the implementation is a direct copy of the MyBatisXMLConfigBuilder
; some of the protected methods do not have access to the object's state and can therefore not be overridden successfully: IBATIS-589 Pending a better way to extend/override, much of the implementation is a direct copy of the MyBatisSqlSessionFactoryBean
; some of the protected methods do not have access to the object's state and can therefore not be overridden successfully. This is equivalent to HierarchicalSqlMapConfigParser which extended iBatis (2.x). See also: IBATIS-589 and:
Constructor and Description |
---|
HierarchicalXMLConfigBuilder(HierarchicalResourceLoader resourceLoader,
InputStream inputStream,
String environment,
Properties props) |
Modifier and Type | Method and Description |
---|---|
org.apache.ibatis.session.Configuration |
parse() |
public HierarchicalXMLConfigBuilder(HierarchicalResourceLoader resourceLoader, InputStream inputStream, String environment, Properties props)
Copyright © 2005–2018 Alfresco Software. All rights reserved.