org.naftulin.configmgr.parsers
Class PropertyFileParserImpl
java.lang.Object
   org.naftulin.configmgr.parsers.PropertyFileParserImpl
org.naftulin.configmgr.parsers.PropertyFileParserImpl
- All Implemented Interfaces: 
- ConfigEntryParser
- public class PropertyFileParserImpl 
- extends java.lang.Object- implements ConfigEntryParser
Configuration entry parser converts property configuration record into property configuration management enttry.
 It parses the property file that the record describes, and stores the configuration
 as a properties in content of an entry.
- Since:
- 1.0
- Author:
- Henry Naftulin
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
PropertyFileParserImpl
public PropertyFileParserImpl()
getConfigurationManagementEntry
public ConfigurationManagementEntry getConfigurationManagementEntry(java.lang.String key,
                                                                    java.net.URL fileUrl)
                                                             throws ConfigurationManagerException
- Retrurns a configuration managment entry by parsing the property file passed in.
 
- 
- Specified by:
- getConfigurationManagementEntryin interface- ConfigEntryParser
 
- 
- 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.
 
toString
public java.lang.String toString()
- Returns a string representation of this parser.
 
- 
- Overrides:
- toStringin class- java.lang.Object
 
- 
- Returns:
- a string representation of this parser.
 
Copyright © 2009. All Rights Reserved.