org.objectweb.easybeans.persistence.xml
Class JPersistenceUnitInfoHelper

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

public final class JPersistenceUnitInfoHelper
extends java.lang.Object

Class used to fill PersistenceInfo implementation class.

Author:
Florent Benoit

Field Summary
private static java.lang.String HIBERNATE_PERSISTENCE_PROVIDER
          Hibernate persistence provider.
private static JLog logger
          Logger.
 
Constructor Summary
private JPersistenceUnitInfoHelper()
          Utility class, no public constructor.
 
Method Summary
static JPersistenceUnitInfo[] getPersistenceUnitInfo(java.net.URL url)
          Parses the given XML and complete the PersistenceUnitInfos structure before returning it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIBERNATE_PERSISTENCE_PROVIDER

private static final java.lang.String HIBERNATE_PERSISTENCE_PROVIDER
Hibernate persistence provider.


logger

private static JLog logger
Logger.

Constructor Detail

JPersistenceUnitInfoHelper

private JPersistenceUnitInfoHelper()
Utility class, no public constructor.

Method Detail

getPersistenceUnitInfo

public static JPersistenceUnitInfo[] getPersistenceUnitInfo(java.net.URL url)
                                                     throws JPersistenceUnitInfoException
Parses the given XML and complete the PersistenceUnitInfos structure before returning it.

Parameters:
url - the URL of the the Reader of the XML file.
Returns:
array of jPersistenceInfo which are implementation of PersistenceUnitInfo object
Throws:
JPersistenceUnitInfoException - if values are incorrect.