com.springsource.bundlor.internal.support
Class JpaPersistenceArtefactAnalyser

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

public 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
(package private)  void analyse(org.w3c.dom.Document doc, java.lang.String artefactName, PartialManifest partialManifest)
           
 boolean canAnalyse(java.lang.String artefactName)
          Can this ArtefactAnalyser analyse the artefact with the supplied name.
 
Methods inherited from class com.springsource.bundlor.internal.support.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

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: ArtefactAnalyser
Can this ArtefactAnalyser analyse the artefact with the supplied name.

Parameters:
artefactName - the name of the artefact.
Returns:
true if the artefact can be analysed; otherwise false.