org.naftulin.configmgr.parsers
Class AbstractLog4JParser
java.lang.Object
org.naftulin.configmgr.parsers.AbstractConfigEntryParser
org.naftulin.configmgr.parsers.AbstractLog4JParser
- All Implemented Interfaces:
- ConfigEntryParser
- Direct Known Subclasses:
- Log4JDomParserImpl, Log4JPropertiesParserImpl
public abstract class AbstractLog4JParser
- extends AbstractConfigEntryParser
Log4J entry parser converts log4j configuration record into configuration management enttry.
It parses a log 4j file that the record describes, (re) initializes log4j
engine, and stores the configuration
as a content of an entry
.
- Since:
- 1.0
- Author:
- Henry Naftulin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLog4JParser
public AbstractLog4JParser()
getConfigurationManagementEntry
public ConfigurationManagementEntry getConfigurationManagementEntry(java.lang.String key,
java.net.URL fileUrl)
throws ConfigurationManagerException
- Retrurns a configuration managment entry by parsing the log4j file passed in.
- Parameters:
key
- the key configuration entry will be assignedfileUrl
- the file URL to be parsed.
- Returns:
- a log4j managment entry by parsing the record passed in.
- Throws:
ConfigurationManagerException
- if an error occurs while parsing an entry.
getConfigurationType
protected abstract ConfigurationType getConfigurationType()
Copyright © 2009. All Rights Reserved.