org.objectweb.easybeans.persistence.xml
Class JPersistenceUnitInfoLoader

java.lang.Object
  extended by org.objectweb.easybeans.persistence.xml.JPersistenceUnitInfoLoader

public final class JPersistenceUnitInfoLoader
extends java.lang.Object

Class used to fill PersistenceUnitInfo implementation class by loading an XML.

Author:
Florent Benoit

Field Summary
private static JLog logger
          Logger.
private static java.lang.String PERSISTENCE_NS
          Persistence namespace.
private static java.lang.String PERSISTENCE_UNIT
          <persistence-unit> element.
private static boolean validating
          Validating with schema ?
 
Constructor Summary
private JPersistenceUnitInfoLoader()
          Utility class, no public constructor.
 
Method Summary
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

PERSISTENCE_NS

private static final java.lang.String PERSISTENCE_NS
Persistence namespace.

See Also:
Constant Field Values

PERSISTENCE_UNIT

private static final java.lang.String PERSISTENCE_UNIT
<persistence-unit> element.

See Also:
Constant Field Values

logger

private static JLog logger
Logger.


validating

private static boolean validating
Validating with schema ?

Constructor Detail

JPersistenceUnitInfoLoader

private JPersistenceUnitInfoLoader()
Utility class, no public constructor.

Method Detail

loadPersistenceUnitInfoImpl

public static JPersistenceUnitInfo[] loadPersistenceUnitInfoImpl(java.net.URL url)
                                                          throws JPersistenceUnitInfoException
Load the persistence.xml file.

Parameters:
url - the URL of the the Reader of the XML file.
Returns:
an application object.
Throws:
JPersistenceUnitInfoException - if parsing of XML file fails.