|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigService
ConfigService is a service providing access to configuration data. Mostly, this is hierarchically structured, but flat property files may also be used.
Method Summary | |
---|---|
org.w3c.dom.Document |
getConfigDoc(java.lang.String relPath)
|
org.w3c.dom.Document |
getConfigDocFromPath(java.lang.String path)
|
ConfigContext |
getContext(org.w3c.dom.Document document,
java.lang.String contextPath)
Returns a context object for the passed document |
ConfigContext |
getContext(java.lang.String contextPath)
Returns a context object for the indicated config path |
ConfigContext |
getContext(java.lang.String configPath,
java.lang.String contextPath)
Returns a context object for the indicated config path |
org.w3c.dom.Document |
getDocFromStream(java.io.InputStream in)
|
ConfigContext |
getEmptyContext()
Returns an empty context |
java.util.Properties |
getProperties(java.lang.String configPath)
|
void |
reset()
Clears any cached config data from service |
void |
saveConfig(org.w3c.dom.Document doc,
java.lang.String fileName)
|
void |
saveConfig(java.lang.String fileName)
|
boolean |
saveConfigStream(java.io.InputStream in,
java.lang.String fileName)
|
void |
saveProperties(java.util.Properties props,
java.lang.String configPath)
|
void |
writeDocToStream(org.w3c.dom.Document doc,
java.io.Writer out)
|
Method Detail |
---|
ConfigContext getContext(java.lang.String configPath, java.lang.String contextPath) throws java.io.IOException
configPath
- contextPath
-
java.io.IOException
ConfigContext getEmptyContext()
ConfigContext getContext(java.lang.String contextPath) throws java.io.IOException
contextPath
-
java.io.IOException
ConfigContext getContext(org.w3c.dom.Document document, java.lang.String contextPath)
document
- contextPath
-
void saveConfig(org.w3c.dom.Document doc, java.lang.String fileName) throws java.io.IOException
java.io.IOException
org.w3c.dom.Document getConfigDoc(java.lang.String relPath) throws java.io.IOException
java.io.IOException
org.w3c.dom.Document getConfigDocFromPath(java.lang.String path) throws java.io.IOException
java.io.IOException
void saveConfig(java.lang.String fileName) throws java.io.IOException
java.io.IOException
org.w3c.dom.Document getDocFromStream(java.io.InputStream in)
boolean saveConfigStream(java.io.InputStream in, java.lang.String fileName) throws java.io.IOException
java.io.IOException
void writeDocToStream(org.w3c.dom.Document doc, java.io.Writer out) throws java.io.IOException
java.io.IOException
void reset()
java.util.Properties getProperties(java.lang.String configPath) throws java.io.IOException
java.io.IOException
void saveProperties(java.util.Properties props, java.lang.String configPath) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |