JavaSECMPInitializer
| Modifier and Type | Field and Description |
|---|---|
| protected Map | |
| protected ClassLoader | |
| protected static Map | |
| protected Map | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public EntityManagerSetupImpl | callPredeploy(SEPersistenceUnitInfo persistenceUnitInfo, Map<K, V> m, String persistenceUnitUniqueName, String sessionName)
predeploy (with deploy) is one of the two steps required in deployment of entities This method will prepare to call predeploy, call it and finally register the transformer returned to be used for weaving. |
| public abstract void | checkWeaving(Map<K, V>
The list of properties to check for weaving and update if weaving is not needed properties)Check whether weaving is possible and update the properties and variable as appropriate |
| protected abstract ClassLoader | createTempLoader(Collection<E> col)
Create a temporary class loader that can be used to inspect classes and then thrown away. |
| protected abstract ClassLoader | |
| public String | createUniquePersistenceUnitName(PersistenceUnitInfo puInfo)
In case persistence unit is not uniquely defined by name this method is called to generate a unique name. |
| public EntityManagerSetupImpl | |
| public SEPersistenceUnitInfo | findPersistenceUnitInfo(String puName, Map<K, V> m)
Find PersistenceUnitInfo corresponding to the persistence unit name. |
| protected SEPersistenceUnitInfo | findPersistenceUnitInfoInArchive(String puName, Archive archive, Map<K, V> m)
Find PersistenceUnitInfo corresponding to the persistence unit name in the archive. |
| protected SEPersistenceUnitInfo | findPersistenceUnitInfoInArchives(String puName, Map<K, V> m)
Find PersistenceUnitInfo corresponding to the persistence unit name. |
| public ClassLoader | |
| public void | |
| public static void | initializeTopLinkLoggingFile()
Initialize the logging file if it is specified by the system property. |
| protected void | initPersistenceUnits(Archive archive, Map<K, V> m)
Initialize all persistence units found on initializationClassLoader. |
| public boolean | isPersistenceProviderSupported(String providerClassName)
Returns whether the given persistence provider class is supported by this implementation |
| public boolean | isPersistenceUnitUniquelyDefinedByName()
Indicates whether puName uniquely defines the persistence unit. |
| protected boolean | keepAllPredeployedPersistenceUnits()
Indicates whether initialPuInfos and initialEmSetupImpls are used. |
| protected Set | loadEntityClasses(Collection<E> entityNames, ClassLoader classLoader)
Create a list of java.lang.Class that contains the classes of all the entities that we will be deploying. |
| public abstract void | registerTransformer(final ClassTransformer transformer, PersistenceUnitInfo persistenceUnitInfo, Map<K, V> properties)
Register a transformer. |
| initialEmSetupImpls | back to summary |
|---|---|
| protected Map<String, EntityManagerSetupImpl> initialEmSetupImpls | |
| initializationClassloader | back to summary |
|---|---|
| protected ClassLoader initializationClassloader | |
| initializers | back to summary |
|---|---|
| protected static Map<ClassLoader, JPAInitializer> initializers | |
| initialPuInfos | back to summary |
|---|---|
| protected Map<String, SEPersistenceUnitInfo> initialPuInfos | |
| shouldCreateInternalLoader | back to summary |
|---|---|
| protected boolean shouldCreateInternalLoader | |
| JPAInitializer | back to summary |
|---|---|
| protected JPAInitializer() | |
| callPredeploy | back to summary |
|---|---|
| public EntityManagerSetupImpl callPredeploy(SEPersistenceUnitInfo persistenceUnitInfo, Map<K, V> m, String persistenceUnitUniqueName, String sessionName) predeploy (with deploy) is one of the two steps required in deployment of entities This method will prepare to call predeploy, call it and finally register the transformer returned to be used for weaving. | |
| checkWeaving | back to summary |
|---|---|
| public abstract void checkWeaving(Map<K, V> properties) Check whether weaving is possible and update the properties and variable as appropriate
| |
| createTempLoader | back to summary |
|---|---|
| protected abstract ClassLoader createTempLoader(Collection<E> col) Create a temporary class loader that can be used to inspect classes and then thrown away. This allows classes to be introspected prior to loading them with application's main class loader enabling weaving. | |
| createTempLoader | back to summary |
|---|---|
| protected abstract ClassLoader createTempLoader(Collection<E> col, boolean shouldOverrideLoadClassForCollectionMembers) | |
| createUniquePersistenceUnitName | back to summary |
|---|---|
| public String createUniquePersistenceUnitName(PersistenceUnitInfo puInfo) In case persistence unit is not uniquely defined by name this method is called to generate a unique name. | |
| extractInitialEmSetupImpl | back to summary |
|---|---|
| public EntityManagerSetupImpl extractInitialEmSetupImpl(String puName) | |
| findPersistenceUnitInfo | back to summary |
|---|---|
| public SEPersistenceUnitInfo findPersistenceUnitInfo(String puName, Map<K, V> m) Find PersistenceUnitInfo corresponding to the persistence unit name. Returns null if either persistence unit either not found or provider is not supported. | |
| findPersistenceUnitInfoInArchive | back to summary |
|---|---|
| protected SEPersistenceUnitInfo findPersistenceUnitInfoInArchive(String puName, Archive archive, Map<K, V> m) Find PersistenceUnitInfo corresponding to the persistence unit name in the archive. Returns null if either persistence unit either not found or provider is not supported. | |
| findPersistenceUnitInfoInArchives | back to summary |
|---|---|
| protected SEPersistenceUnitInfo findPersistenceUnitInfoInArchives(String puName, Map<K, V> m) Find PersistenceUnitInfo corresponding to the persistence unit name. Returns null if either persistence unit either not found or provider is not supported. | |
| getInitializationClassLoader | back to summary |
|---|---|
| public ClassLoader getInitializationClassLoader() | |
| initialize | back to summary |
|---|---|
| public void initialize(Map<K, V> m) 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. | |
| initializeTopLinkLoggingFile | back to summary |
|---|---|
| public static void initializeTopLinkLoggingFile() Initialize the logging file if it is specified by the system property. | |
| initPersistenceUnits | back to summary |
|---|---|
| protected void initPersistenceUnits(Archive archive, Map<K, V> m) Initialize all persistence units found on initializationClassLoader. Initialization is a two phase process. First the predeploy process builds the metadata and creates any required transformers. Second the deploy process creates an EclipseLink session based on that metadata. | |
| isPersistenceProviderSupported | back to summary |
|---|---|
| public boolean isPersistenceProviderSupported(String providerClassName) Returns whether the given persistence provider class is supported by this implementation | |
| isPersistenceUnitUniquelyDefinedByName | back to summary |
|---|---|
| public boolean isPersistenceUnitUniquelyDefinedByName() Indicates whether puName uniquely defines the persistence unit. | |
| keepAllPredeployedPersistenceUnits | back to summary |
|---|---|
| protected boolean keepAllPredeployedPersistenceUnits() Indicates whether initialPuInfos and initialEmSetupImpls are used. | |
| loadEntityClasses | back to summary |
|---|---|
| protected Set Create a list of java.lang.Class that contains the classes of all the entities that we will be deploying. | |
| registerTransformer | back to summary |
|---|---|
| public abstract void registerTransformer(final ClassTransformer transformer, PersistenceUnitInfo persistenceUnitInfo, Map<K, V> properties) Register a transformer. This method should be overridden to provide the appropriate transformer registration for the environment | |