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, usesAgentFields inherited from class org.eclipse.persistence.internal.jpa.deployment.JPAInitializer
initialEmSetupImpls, initializationClassloader, initializers, initialPuInfos, shouldCreateInternalLoader -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionstatic WebJETJavaSECMPInitializerGet the singleton entityContainer.static WebJETJavaSECMPInitializergetJavaSECMPInitializer(ClassLoader loader) static WebJETJavaSECMPInitializergetJavaSECMPInitializer(ClassLoader classLoader, Map m, boolean fromAgent) static WebJETJavaSECMPInitializerstatic WebJETJavaSECMPInitializervoidinitialize(Map m) This method initializes the container.protected voidinitPersistenceUnits(org.eclipse.persistence.jpa.Archive archive, Map m) Initialize persistence units.static voidsetDefaultProperties(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, usesAgentMethods 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:
initializein 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:
initPersistenceUnitsin classorg.eclipse.persistence.internal.jpa.deployment.JPAInitializer
-
setDefaultProperties
-