com.springsource.bundlor.support.contributors
Class JpaPersistenceArtefactAnalyser

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

public final class JpaPersistenceArtefactAnalyser
extends AbstractXmlDocumentArtefactAnalyser

An analyzer for a JPA persistence.xml file. Analyzes the list of package names that are found in the provider, mapping-file, and class elements.

Concurrent Semantics
Threadsafe.

Author:
Ben Hale

Field Summary
private  javax.xml.xpath.XPathExpression expression
           
 
Constructor Summary
JpaPersistenceArtefactAnalyser()
           
 
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

expression

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

JpaPersistenceArtefactAnalyser

public JpaPersistenceArtefactAnalyser()
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.