|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XmlConfigurationParser
Implementations of this interface are responsible for parsing XML configuration files.
| Method Summary | |
|---|---|
void |
initialize(InputStream inputStream)
Initializes the parser with a stream that contains the contents of an XML configuration file to parse. |
void |
initialize(String fileName)
Initializes the parser with a String that represents the name of the configuration file to parse. |
Configuration |
parseDefaultConfiguration()
Parses the default template configuration. |
GlobalConfiguration |
parseGlobalConfiguration()
GlobalConfiguration would also have a reference to the template default configuration, accessible via GlobalConfiguration.getDefaultConfiguration()
This is typically used to configure a DefaultCacheManager |
Map<String,Configuration> |
parseNamedConfigurations()
Parses and retrieves configuration overrides for named caches. |
| Method Detail |
|---|
void initialize(String fileName)
throws IOException
fileName - name of file that contains the XML configuration
IOException - if there is a problem reading the configuration file
void initialize(InputStream inputStream)
throws IOException
inputStream - stream to read from
IOException - if there is a problem reading from the stream
Configuration parseDefaultConfiguration()
throws ConfigurationException
ConfigurationException - if there is a problem parsing the configuration XML
Map<String,Configuration> parseNamedConfigurations()
throws ConfigurationException
ConfigurationException - if there is a problem parsing the configuration XMLGlobalConfiguration parseGlobalConfiguration()
GlobalConfiguration.getDefaultConfiguration()
This is typically used to configure a DefaultCacheManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||