com.springsource.bundlor.support.contributors
Class WebApplicationArtifactAnalyzer
java.lang.Object
com.springsource.bundlor.support.contributors.AbstractXmlDocumentArtefactAnalyser
com.springsource.bundlor.support.contributors.WebApplicationArtifactAnalyzer
- All Implemented Interfaces:
- ArtifactAnalyzer
public final class WebApplicationArtifactAnalyzer
- extends AbstractXmlDocumentArtefactAnalyser
An analyzer for the web.xml
file in a web application. Analyzers the list of package names that are
found in various places in the file.
Concurrent Semantics
Threadsafe
- Author:
- Ben Hale
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 |
WEB_XML_LOCATION
private static final java.lang.String WEB_XML_LOCATION
- See Also:
- Constant Field Values
XPATH_EXPRESSION
private static final java.lang.String XPATH_EXPRESSION
- See Also:
- Constant Field Values
expression
private final javax.xml.xpath.XPathExpression expression
WebApplicationArtifactAnalyzer
public WebApplicationArtifactAnalyzer()
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)
- Can this
ArtifactAnalyzer
analyse the artefact with the supplied name.
- Returns:
true
if the artefact can be analysed; otherwise false
.