|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.persistence.xml.PersistenceXmlFileAnalyzer
public final class PersistenceXmlFileAnalyzer
Class used to analyze a given archive (by analyzing the persistence.xml file if any).
Field Summary | |
---|---|
private static java.lang.String |
DIRECTORY_PERSISTENCE_XML_FILE
Directory where persistence.xml file should be. |
private static JLog |
logger
Logger. |
private static java.lang.String |
PERSISTENCE_XML_FILE
Name of the persistence.xml file. |
Constructor Summary | |
---|---|
private |
PersistenceXmlFileAnalyzer()
Utility class, no public constructor. |
Method Summary | |
---|---|
static PersistenceUnitManager |
analyzePersistenceXmlFile(EZBArchive archive,
java.lang.ClassLoader classLoader)
Detects and analyze the META-INF/persistence.xml file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String DIRECTORY_PERSISTENCE_XML_FILE
private static final java.lang.String PERSISTENCE_XML_FILE
private static JLog logger
Constructor Detail |
---|
private PersistenceXmlFileAnalyzer()
Method Detail |
---|
public static PersistenceUnitManager analyzePersistenceXmlFile(EZBArchive archive, java.lang.ClassLoader classLoader) throws PersistenceXmlFileAnalyzerException
archive
- the file to analyze (or directory) in order to find a
persistence.xml file.classLoader
- the classloader used to load the persistence provider
class.
PersistenceXmlFileAnalyzerException
- if detection or analyze
fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |