com.springsource.bundlor.support.contributors
Class SpringApplicationContextArtefactAnalyser

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

public final class SpringApplicationContextArtefactAnalyser
extends AbstractXmlConfigurationArtifactAnalyzer

An analyzer for an Application Context located in a JAR file. Analyzes the list of package names that are found in bean declaration class attributes.

Concurrent Semantics
Not threadsafe.

Author:
Ben Hale

Field Summary
private static java.lang.String CLASS_ATTRIBUTES
           
private static java.lang.String CLASS_VALUES
           
private static java.util.Map<java.lang.String,java.lang.String> NAMESPACE_MAPPING
           
private static java.lang.String PACKAGE_ATTRIBUTES
           
 
Constructor Summary
SpringApplicationContextArtefactAnalyser()
           
 
Method Summary
 boolean canAnalyse(java.lang.String artifactName)
          Can this ArtifactAnalyzer analyse the artefact with the supplied name.
protected  java.lang.String getClassAttributesXPathExpression()
           
protected  java.lang.String getClassValueXPathExpression()
           
protected  java.util.Map<java.lang.String,java.lang.String> getNamespaceMapping()
           
protected  java.lang.String getPackageXPathExpression()
           
 
Methods inherited from class com.springsource.bundlor.support.contributors.AbstractXmlConfigurationArtifactAnalyzer
analyse
 
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

CLASS_ATTRIBUTES

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

CLASS_VALUES

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

PACKAGE_ATTRIBUTES

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

NAMESPACE_MAPPING

private static final java.util.Map<java.lang.String,java.lang.String> NAMESPACE_MAPPING
Constructor Detail

SpringApplicationContextArtefactAnalyser

public SpringApplicationContextArtefactAnalyser()
Method Detail

getClassAttributesXPathExpression

protected java.lang.String getClassAttributesXPathExpression()
Specified by:
getClassAttributesXPathExpression in class AbstractXmlConfigurationArtifactAnalyzer

getClassValueXPathExpression

protected java.lang.String getClassValueXPathExpression()
Specified by:
getClassValueXPathExpression in class AbstractXmlConfigurationArtifactAnalyzer

getPackageXPathExpression

protected java.lang.String getPackageXPathExpression()
Specified by:
getPackageXPathExpression in class AbstractXmlConfigurationArtifactAnalyzer

getNamespaceMapping

protected java.util.Map<java.lang.String,java.lang.String> getNamespaceMapping()
Specified by:
getNamespaceMapping in class AbstractXmlConfigurationArtifactAnalyzer

canAnalyse

public boolean canAnalyse(java.lang.String artifactName)
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.