|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.persistence.xml.JPersistenceUnitInfoLoader
public final class JPersistenceUnitInfoLoader
Class used to fill PersistenceUnitInfo implementation class by loading an XML.
Nested Class Summary | |
---|---|
static class |
JPersistenceUnitInfoLoader.PersistenceEntityResolver
Entity resolver allowing to find schema within the classloader. |
static class |
JPersistenceUnitInfoLoader.XMLUtils
Class with some useful methods on XML document. |
Field Summary | |
---|---|
private static JLog |
logger
Logger. |
private static boolean |
validating
Validating with schema ? |
Constructor Summary | |
---|---|
private |
JPersistenceUnitInfoLoader()
Utility class, no public constructor. |
Method Summary | |
---|---|
private static org.w3c.dom.Document |
getDocument(java.net.URL url)
Builds a new Document for a given xml file. |
static JPersistenceUnitInfo[] |
loadPersistenceUnitInfoImpl(java.net.URL url)
Load the 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 JLog logger
private static boolean validating
Constructor Detail |
---|
private JPersistenceUnitInfoLoader()
Method Detail |
---|
public static JPersistenceUnitInfo[] loadPersistenceUnitInfoImpl(java.net.URL url) throws JPersistenceUnitInfoException
url
- the URL of the the Reader of the XML file.
JPersistenceUnitInfoException
- if parsing of XML file fails.private static org.w3c.dom.Document getDocument(java.net.URL url) throws JPersistenceUnitInfoException
url
- the URL of the the XML file.
JPersistenceUnitInfoException
- if creating of builder fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |