Package org.mybatis.generator.config.xml
Class ConfigurationParser
java.lang.Object
org.mybatis.generator.config.xml.ConfigurationParser
-
Constructor Summary
ConstructorDescriptionConfigurationParser
(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. -
Method Summary
Modifier and TypeMethodDescriptionparseConfiguration
(File inputFile) parseConfiguration
(InputStream inputStream) parseConfiguration
(Reader reader)
-
Constructor Details
-
ConfigurationParser
-
ConfigurationParser
This constructor accepts a properties object which may be used to specify an additional property set. Typically this property set will be Ant or Maven properties specified in the build.xml file or the POM.If there are name collisions between the different property sets, they will be resolved in this order:
- System properties take highest precedence
- Properties specified in the <properties> configuration element are next
- Properties specified in this "extra" property set are lowest precedence.
- Parameters:
extraProperties
- an (optional) set of properties used to resolve property references in the configuration filewarnings
- any warnings are added to this array
-
-
Method Details
-
parseConfiguration
- Throws:
IOException
XMLParserException
-
parseConfiguration
- Throws:
IOException
XMLParserException
-
parseConfiguration
public Configuration parseConfiguration(InputStream inputStream) throws IOException, XMLParserException - Throws:
IOException
XMLParserException
-