Package org.datanucleus.enhancer
Class EnhancementNucleusContextImpl
- java.lang.Object
-
- org.datanucleus.AbstractNucleusContext
-
- org.datanucleus.enhancer.EnhancementNucleusContextImpl
-
- All Implemented Interfaces:
NucleusContext
public class EnhancementNucleusContextImpl extends AbstractNucleusContext
NucleusContext to use when enhancing. Just provides basic plugin, type and metadata services.
-
-
Field Summary
-
Fields inherited from class org.datanucleus.AbstractNucleusContext
apiAdapter, classLoaderResolverClassName, classLoaderResolverMap, config, defaultCLR, metaDataManager, pluginManager, STARTUP_PROPERTIES, typeManager
-
-
Constructor Summary
Constructors Constructor Description EnhancementNucleusContextImpl(String apiName, Map startupProps)
Constructor for the context.EnhancementNucleusContextImpl(String apiName, Map startupProps, PluginManager pluginMgr)
Constructor for the context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Clear out resources for the supported services.protected void
logConfigurationDetails()
Convenience method so that extending implementations can log their own configuration.-
Methods inherited from class org.datanucleus.AbstractNucleusContext
applyDefaultProperties, getApiAdapter, getApiName, getClassLoaderResolver, getConfiguration, getMetaDataManager, getPluginManager, getTypeManager, initialise, logConfiguration, supportsORMMetaData
-
-
-
-
Constructor Detail
-
EnhancementNucleusContextImpl
public EnhancementNucleusContextImpl(String apiName, Map startupProps)
Constructor for the context.- Parameters:
apiName
- Name of the API that we need a context for (JDO, JPA, etc)startupProps
- Any properties that could define behaviour of this context (plugin registry, class loading etc)
-
EnhancementNucleusContextImpl
public EnhancementNucleusContextImpl(String apiName, Map startupProps, PluginManager pluginMgr)
Constructor for the context.- Parameters:
apiName
- Name of the API that we need a context for (JDO, JPA, etc)startupProps
- Any properties that could define behaviour of this context (plugin registry, class loading etc)pluginMgr
- Plugin Manager (or null if wanting it to be created)
-
-
Method Detail
-
close
public void close()
Description copied from interface:NucleusContext
Clear out resources for the supported services.- Specified by:
close
in interfaceNucleusContext
- Overrides:
close
in classAbstractNucleusContext
-
logConfigurationDetails
protected void logConfigurationDetails()
Description copied from class:AbstractNucleusContext
Convenience method so that extending implementations can log their own configuration.- Specified by:
logConfigurationDetails
in classAbstractNucleusContext
-
-