public class Configuration extends Object
| Constructor and Description |
|---|
Configuration()
Instantiates a new configuration.
|
| Modifier and Type | Method and Description |
|---|---|
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 Context getContext(String id)
id - the idpublic Document toDocument()
Copyright © 2006–2016 MyBatis.org. All rights reserved.