Package sk.iway.iwcm.system.jpa
Class WebJETJavaSECMPInitializer
java.lang.Object
org.eclipse.persistence.internal.jpa.deployment.JPAInitializer
org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer
sk.iway.iwcm.system.jpa.WebJETJavaSECMPInitializer
public class WebJETJavaSECMPInitializer
extends org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer
WebJETJavaSECMPInitializer.java
Subclassed in order to override reading metadata from persistence.xml and use datasources specified in poolman.xml
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer
org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer.TempEntityLoader
-
Field Summary
FieldsFields inherited from class org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer
globalInstrumentation, isInContainer, isInitialized, usesAgent
Fields inherited from class org.eclipse.persistence.internal.jpa.deployment.JPAInitializer
initialEmSetupImpls, initializationClassloader, initializers, initialPuInfos, shouldCreateInternalLoader
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebJETJavaSECMPInitializer
Get the singleton entityContainer.static WebJETJavaSECMPInitializer
getJavaSECMPInitializer
(ClassLoader loader) static WebJETJavaSECMPInitializer
getJavaSECMPInitializer
(ClassLoader classLoader, Map m, boolean fromAgent) static WebJETJavaSECMPInitializer
static WebJETJavaSECMPInitializer
void
initialize
(Map m) This method initializes the container.protected void
initPersistenceUnits
(org.eclipse.persistence.jpa.Archive archive, Map m) Initialize persistence units.static void
setDefaultProperties
(Properties properties) Methods inherited from class org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer
checkWeaving, createTempLoader, createTempLoader, initializeFromAgent, initializeFromMain, initializeFromMain, isInContainer, isInitialized, isPersistenceUnitUniquelyDefinedByName, keepAllPredeployedPersistenceUnits, registerTransformer, setIsInContainer, usesAgent
Methods inherited from class org.eclipse.persistence.internal.jpa.deployment.JPAInitializer
callPredeploy, createUniquePersistenceUnitName, extractInitialEmSetupImpl, findPersistenceUnitInfo, findPersistenceUnitInfoInArchive, findPersistenceUnitInfoInArchives, getInitializationClassLoader, initializeTopLinkLoggingFile, isPersistenceProviderSupported, loadEntityClasses
-
Field Details
-
initializer
-
-
Constructor Details
-
WebJETJavaSECMPInitializer
protected WebJETJavaSECMPInitializer() -
WebJETJavaSECMPInitializer
-
-
Method Details
-
getJavaSECMPInitializer
Get the singleton entityContainer. -
getJavaSECMPInitializer
-
getJavaSECMPInitializerFromAgent
-
getJavaSECMPInitializerFromMain
-
getJavaSECMPInitializer
public static WebJETJavaSECMPInitializer getJavaSECMPInitializer(ClassLoader classLoader, Map m, boolean fromAgent) -
initialize
This method initializes the container. Essentially, it will try to load the class that contains the list of entities and reflectively call the method that contains that list. It will then initialize the container with that list.- Overrides:
initialize
in classorg.eclipse.persistence.internal.jpa.deployment.JPAInitializer
-
initPersistenceUnits
Initialize persistence units. Initialization is a two phase process. First the predeploy process builds the metadata and creates any required transformers. This is WebJET specific version, any metadata from persistence.xml is abandoned. Instead, a new SEPersistenceUnitInfo is created from metadata contained in poolman.xml. Only classes in specific packages with specific class name patterns are included to be scanned as managedClasses. Second the deploy process creates an EclipseLink session based on that metadata.- Overrides:
initPersistenceUnits
in classorg.eclipse.persistence.internal.jpa.deployment.JPAInitializer
-
setDefaultProperties
-