public class JavaSECMPInitializer extends Object
EntityManagerFactoryProvider
Modifier and Type | Class and Description |
---|---|
class |
JavaSECMPInitializer.TempEntityLoader
This class loader is provided at initialization time to allow us to temporarily load
domain classes so we can examine them for annotations.
|
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,EntityManagerSetupImpl> |
emSetupImpls |
protected HashMap<String,SEPersistenceUnitInfo> |
emSetupPersistenceUnitInfos |
static Instrumentation |
globalInstrumentation |
protected static JavaSECMPInitializer |
javaSECMPInitializer |
protected ClassLoader |
sessionClassLoader |
protected boolean |
shouldCreateInternalLoader |
Modifier | Constructor and Description |
---|---|
protected |
JavaSECMPInitializer()
INTERNAL:
User should not instantiate JavaSECMPInitializer.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
callPredeploy(SEPersistenceUnitInfo persistenceUnitInfo,
Map m)
INTERNAL
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.
|
protected ClassLoader |
createTempLoader(Collection col)
Create a temporary class loader that can be used to inspect classes and then
thrown away.
|
protected ClassLoader |
createTempLoader(Collection col,
boolean shouldOverrideLoadClassForCollectionMembers) |
EntityManagerSetupImpl |
getEntityManagerSetupImpl(String emName)
Return the setup class for a given entity manager name
|
static JavaSECMPInitializer |
getJavaSECMPInitializer(Map properties)
INTERNAL:
Get the singleton entityContainer.
|
static ClassLoader |
getMainLoader() |
static int |
getTopLinkLoggingLevel()
Look in the System properties for a logging level property and return a integer
that can be used to set the logging level in TopLink
|
void |
initialize(Map m)
INTERNAL
This method initializes the container.
|
protected static void |
initializeFromAgent(Instrumentation instrumentation)
INTERNAL:
Should be called only by the agent.
|
static void |
initializeFromMain(Map m)
Initialize the static entityContainer from a main method.
|
protected void |
initPersistenceUnits(Archive archive,
Map m)
Initialize one persistence unit.
|
static boolean |
isSingletonInitialized()
Return whether initialization has occured without actually triggering
initialization
|
protected Set |
loadEntityClasses(Collection entityNames,
ClassLoader classLoader)
INTERNAL:
Create a list of java.lang.Class that contains the classes of all the entities
that we will be deploying
|
public static Instrumentation globalInstrumentation
protected boolean shouldCreateInternalLoader
protected static JavaSECMPInitializer javaSECMPInitializer
protected HashMap<String,EntityManagerSetupImpl> emSetupImpls
protected HashMap<String,SEPersistenceUnitInfo> emSetupPersistenceUnitInfos
protected ClassLoader sessionClassLoader
protected JavaSECMPInitializer()
public static JavaSECMPInitializer getJavaSECMPInitializer(Map properties)
public static boolean isSingletonInitialized()
public static int getTopLinkLoggingLevel()
protected boolean callPredeploy(SEPersistenceUnitInfo persistenceUnitInfo, Map m)
protected ClassLoader createTempLoader(Collection col)
protected ClassLoader createTempLoader(Collection col, boolean shouldOverrideLoadClassForCollectionMembers)
public EntityManagerSetupImpl getEntityManagerSetupImpl(String emName)
emName
- public static ClassLoader getMainLoader()
protected void initPersistenceUnits(Archive archive, Map m)
public void initialize(Map m)
protected static void initializeFromAgent(Instrumentation instrumentation) throws Exception
Exception
public static void initializeFromMain(Map m)
m
- a map containing the set of properties to intantiate with.protected Set loadEntityClasses(Collection entityNames, ClassLoader classLoader)
Copyright © 2024. All rights reserved.