配置类
- Configuration.java
//定义并装载context和classPathEntry
private List<Context> contexts;
private List<String> classPathEntries;
public void addClasspathEntry(String entry) {
classPathEntries.add(entry);
}
public void addContext(Context context) {
contexts.add(context);
}
-
PropertyHolder.java
- context以及其子节点的父类,提供property元素方法
-
TypedPropertyHolder extends PropertyHolder
- 设置configurationType,默认default
-
Context extends PropertyHolder
- JDBCConnectionConfiguration extends PropertyHolder
- ConnectionFactoryConfiguration extends TypedPropertyHolder
- SqlMapGeneratorConfiguration extends PropertyHolder
- JavaTypeResolverConfiguration extends TypedPropertyHolder
- JavaModelGeneratorConfiguration extends PropertyHolder
- JavaClientGeneratorConfiguration extends TypedPropertyHolder
- TableConfiguration extends PropertyHolder
- ColumnOverride extends PropertyHolder
- IgnoredColumn
- GeneratedKey
- ModelType
- DomainObjectRenamingRule
- ColumnRenamingRule
- ModelType(同TableConfiguration下的ModelType)
- CommentGeneratorConfiguration extends TypedPropertyHolder
- PluginAggregator implements Plugin
- PluginConfiguration extends TypedPropertyHolder
- JavaFormatter
- XmlFormatter
-
未完待续