public class Configuration extends Object
| 构造器和说明 |
|---|
Configuration()
Instantiates a new configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addClasspathEntry(String entry)
Adds the classpath entry.
|
void |
addContext(Context context)
Adds the context.
|
List<String> |
getClassPathEntries()
Gets the class path entries.
|
Context |
getContext(String id)
Gets the context.
|
List<Context> |
getContexts()
Gets the contexts.
|
Document |
toDocument()
Builds an XML representation of this configuration.
|
void |
validate()
This method does a simple validate, it makes sure that all required fields have been filled in and that all
implementation classes exist and are of the proper type.
|
public void addClasspathEntry(String entry)
entry - the entrypublic List<String> getClassPathEntries()
public void validate()
throws InvalidConfigurationException
InvalidConfigurationException - the invalid configuration exceptionpublic void addContext(Context context)
context - the contextpublic Document toDocument()
Copyright © 2006–2016 MyBatis.org. All rights reserved.