com.springsource.bundlor.support.contributors
Class Log4JXmlArtifactAnalyzer
java.lang.Object
com.springsource.bundlor.support.contributors.AbstractXmlDocumentArtefactAnalyser
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
Field Summary |
private javax.xml.xpath.XPathExpression |
expression
|
private static java.lang.String |
LOG4J_DTD
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG4J_DTD
private static final java.lang.String LOG4J_DTD
- See Also:
- Constant Field Values
expression
private final javax.xml.xpath.XPathExpression expression
Log4JXmlArtifactAnalyzer
public Log4JXmlArtifactAnalyzer()
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
.