public class Configuration
extends java.lang.Object
| 构造器和说明 |
|---|
Configuration()
Instantiates a new configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addClasspathEntry(java.lang.String entry)
Adds the classpath entry.
|
void |
addContext(Context context)
Adds the context.
|
java.util.List<java.lang.String> |
getClassPathEntries()
Gets the class path entries.
|
Context |
getContext(java.lang.String id)
Gets the context.
|
java.util.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(java.lang.String entry)
entry - the entrypublic java.util.List<java.lang.String> getClassPathEntries()
public void validate()
throws InvalidConfigurationException
InvalidConfigurationException - the invalid configuration exceptionpublic java.util.List<Context> getContexts()
public void addContext(Context context)
context - the contextpublic Context getContext(java.lang.String id)
id - the idpublic Document toDocument()
Copyright © 2018. All Rights Reserved.