com.springsource.bundlor.support.contributors
Class WebApplicationArtifactAnalyzer

java.lang.Object
  extended by com.springsource.bundlor.support.contributors.AbstractXmlDocumentArtefactAnalyser
      extended by 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

Field Summary
private  javax.xml.xpath.XPathExpression expression
           
private static java.lang.String WEB_XML_LOCATION
           
private static java.lang.String XPATH_EXPRESSION
           
 
Constructor Summary
WebApplicationArtifactAnalyzer()
           
 
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

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
Constructor Detail

WebApplicationArtifactAnalyzer

public WebApplicationArtifactAnalyzer()
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)
Can this ArtifactAnalyzer analyse the artefact with the supplied name.

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