|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.persistence.xml.JPersistenceUnitInfoHelper
public final class JPersistenceUnitInfoHelper
Class used to fill PersistenceInfo implementation class.
Field Summary | |
---|---|
private static java.lang.String |
DEFAULT_PERSISTENCE_CONFIG
Default XML configuration. |
private static JPersistenceUnitInfo |
defaultPersistenceunitInfo
Default configuration of persistence.xml (it defines the default persistence provider and links to external config, one for each provider class name. |
private static JLog |
logger
Logger. |
private static java.util.Map<java.lang.String,JPersistenceUnitInfo> |
providersInfo
Defines the default configuration (properties) for each persistence provider. |
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. |
private static void |
loadDefaultValues()
Loads the default values (global configuration) and then configuration of each persistence provider. |
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 DEFAULT_PERSISTENCE_CONFIG
private static JLog logger
private static JPersistenceUnitInfo defaultPersistenceunitInfo
private static java.util.Map<java.lang.String,JPersistenceUnitInfo> providersInfo
Constructor Detail |
---|
private JPersistenceUnitInfoHelper()
Method Detail |
---|
public static JPersistenceUnitInfo[] getPersistenceUnitInfo(java.net.URL url) throws JPersistenceUnitInfoException
url
- the URL of the the Reader of the XML file.
JPersistenceUnitInfoException
- if values are incorrect.private static void loadDefaultValues() throws JPersistenceUnitInfoException
JPersistenceUnitInfoException
- if default configuration is not found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |