public class ConfigurationParser extends Object
Constructor and Description |
---|
ConfigurationParser(List<String> warnings) |
ConfigurationParser(Properties extraProperties,
List<String> warnings)
This constructor accepts a properties object which may be used to specify
an additional property set.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
parseConfiguration(File inputFile) |
Configuration |
parseConfiguration(InputStream inputStream) |
Configuration |
parseConfiguration(Reader reader) |
public ConfigurationParser(Properties extraProperties, List<String> warnings)
If there are name collisions between the different property sets, they will be resolved in this order:
extraProperties
- an (optional) set of properties used to resolve property
references in the configuration filewarnings
- any warnings are added to this arraypublic Configuration parseConfiguration(File inputFile) throws IOException, XMLParserException
IOException
XMLParserException
public Configuration parseConfiguration(Reader reader) throws IOException, XMLParserException
IOException
XMLParserException
public Configuration parseConfiguration(InputStream inputStream) throws IOException, XMLParserException
IOException
XMLParserException
Copyright © 2006–2024 MyBatis.org. All rights reserved.