public class JavaSECMPInitializer
extends java.lang.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 java.util.HashMap<java.lang.String,EntityManagerSetupImpl> |
emSetupImpls |
protected java.util.HashMap<java.lang.String,SEPersistenceUnitInfo> |
emSetupPersistenceUnitInfos |
static java.lang.instrument.Instrumentation |
globalInstrumentation |
protected static JavaSECMPInitializer |
javaSECMPInitializer |
protected java.lang.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,
java.util.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 java.lang.ClassLoader |
createTempLoader(java.util.Collection col)
Create a temporary class loader that can be used to inspect classes and then
thrown away.
|
protected java.lang.ClassLoader |
createTempLoader(java.util.Collection col,
boolean shouldOverrideLoadClassForCollectionMembers) |
EntityManagerSetupImpl |
getEntityManagerSetupImpl(java.lang.String emName)
Return the setup class for a given entity manager name
|
static JavaSECMPInitializer |
getJavaSECMPInitializer(java.util.Map properties)
INTERNAL:
Get the singleton entityContainer.
|
static java.lang.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(java.util.Map m)
INTERNAL
This method initializes the container.
|
protected static void |
initializeFromAgent(java.lang.instrument.Instrumentation instrumentation)
INTERNAL:
Should be called only by the agent.
|
static void |
initializeFromMain(java.util.Map m)
Initialize the static entityContainer from a main method.
|
protected void |
initPersistenceUnits(Archive archive,
java.util.Map m)
Initialize one persistence unit.
|
static boolean |
isSingletonInitialized()
Return whether initialization has occured without actually triggering
initialization
|
protected java.util.Set |
loadEntityClasses(java.util.Collection entityNames,
java.lang.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 java.lang.instrument.Instrumentation globalInstrumentation
protected boolean shouldCreateInternalLoader
protected static JavaSECMPInitializer javaSECMPInitializer
protected java.util.HashMap<java.lang.String,EntityManagerSetupImpl> emSetupImpls
protected java.util.HashMap<java.lang.String,SEPersistenceUnitInfo> emSetupPersistenceUnitInfos
protected java.lang.ClassLoader sessionClassLoader
protected JavaSECMPInitializer()
public static JavaSECMPInitializer getJavaSECMPInitializer(java.util.Map properties)
public static boolean isSingletonInitialized()
public static int getTopLinkLoggingLevel()
protected boolean callPredeploy(SEPersistenceUnitInfo persistenceUnitInfo, java.util.Map m)
protected java.lang.ClassLoader createTempLoader(java.util.Collection col)
protected java.lang.ClassLoader createTempLoader(java.util.Collection col, boolean shouldOverrideLoadClassForCollectionMembers)
public EntityManagerSetupImpl getEntityManagerSetupImpl(java.lang.String emName)
emName
- public static java.lang.ClassLoader getMainLoader()
protected void initPersistenceUnits(Archive archive, java.util.Map m)
public void initialize(java.util.Map m)
protected static void initializeFromAgent(java.lang.instrument.Instrumentation instrumentation) throws java.lang.Exception
java.lang.Exception
public static void initializeFromMain(java.util.Map m)
m
- a map containing the set of properties to intantiate with.protected java.util.Set loadEntityClasses(java.util.Collection entityNames, java.lang.ClassLoader classLoader)