org.naftulin.configmgr.parsers
Class AbstractLog4JParser

java.lang.Object
  extended by org.naftulin.configmgr.parsers.AbstractConfigEntryParser
      extended by 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

Constructor Summary
AbstractLog4JParser()
           
 
Method Summary
 ConfigurationManagementEntry getConfigurationManagementEntry(java.lang.String key, java.net.URL fileUrl)
          Retrurns a configuration managment entry by parsing the log4j file passed in.
protected abstract  ConfigurationType getConfigurationType()
           
 
Methods inherited from class org.naftulin.configmgr.parsers.AbstractConfigEntryParser
readStreamContentAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLog4JParser

public AbstractLog4JParser()
Method Detail

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 assigned
fileUrl - 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.