com.springsource.bundlor.support.contributors
Class Log4JXmlArtifactAnalyzer

java.lang.Object
  extended by com.springsource.bundlor.support.contributors.AbstractXmlDocumentArtefactAnalyser
      extended by com.springsource.bundlor.support.contributors.Log4JXmlArtifactAnalyzer
All Implemented Interfaces:
ArtifactAnalyzer

public class Log4JXmlArtifactAnalyzer
extends AbstractXmlDocumentArtefactAnalyser

An analyzer for a Log4Jlog4j.xml file. Analyzes the list of class names that are found in the appender and layout tags.

Concurrent Semantics
Threadsafe.

Author:
Ben Hale

Nested Class Summary
private static class Log4JXmlArtifactAnalyzer.Log4JEntityResolver
           
 
Field Summary
private  javax.xml.xpath.XPathExpression expression
           
private static java.lang.String LOG4J_DTD
           
 
Constructor Summary
Log4JXmlArtifactAnalyzer()
           
 
Method Summary
protected  void analyse(org.w3c.dom.Document doc, java.lang.String artefactName, PartialManifest partialManifest)
           
 boolean canAnalyse(java.lang.String artefactName)
          Can this ArtifactAnalyzer analyse the artefact with the supplied name.
 
Methods inherited from class com.springsource.bundlor.support.contributors.AbstractXmlDocumentArtefactAnalyser
analyse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG4J_DTD

private static final java.lang.String LOG4J_DTD
See Also:
Constant Field Values

expression

private final javax.xml.xpath.XPathExpression expression
Constructor Detail

Log4JXmlArtifactAnalyzer

public Log4JXmlArtifactAnalyzer()
Method Detail

analyse

protected void analyse(org.w3c.dom.Document doc,
                       java.lang.String artefactName,
                       PartialManifest partialManifest)
                throws java.lang.Exception
Specified by:
analyse in class AbstractXmlDocumentArtefactAnalyser
Throws:
java.lang.Exception

canAnalyse

public boolean canAnalyse(java.lang.String artefactName)
Description copied from interface: ArtifactAnalyzer
Can this ArtifactAnalyzer analyse the artefact with the supplied name.

Returns:
true if the artefact can be analysed; otherwise false.