org.naftulin.configmgr.parsers
Interface ConfigEntryParser

All Known Implementing Classes:
AbstractConfigEntryParser, AbstractLog4JParser, DbDirectParserImpl, DbJndiParserImpl, ExternalConfigurationParserImpl, JndiParserImpl, Log4JDomParserImpl, Log4JPropertiesParserImpl, MasterRecordParser, PropertyFileParserImpl, XmlFileParserImpl

public interface ConfigEntryParser

Configuration entry parser converts configuration record into configuration management enttry. It parses the file (or resource) that the record describes, and stores the configuration as a content of an entry.

Since:
1.0
Author:
Henry Naftulin

Method Summary
 ConfigurationManagementEntry getConfigurationManagementEntry(java.lang.String key, java.net.URL fileUrl)
          Retrurns a configuration managment entry by parsing the record passed in.
 

Method Detail

getConfigurationManagementEntry

ConfigurationManagementEntry getConfigurationManagementEntry(java.lang.String key,
                                                             java.net.URL fileUrl)
                                                             throws ConfigurationManagerException
Retrurns a configuration managment entry by parsing the record passed in.

Parameters:
key - the key configuration entry will be assigned
fileUrl - the file URL to be parsed.
Returns:
a configuration managment entry by parsing the record passed in.
Throws:
ConfigurationManagerException - if an error occurs while parsing an entry.


Copyright © 2009. All Rights Reserved.