- 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, 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 voidclose()Clear out resources for the supported services.protected voidlogConfigurationDetails()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:NucleusContextClear out resources for the supported services.- Specified by:
closein interfaceNucleusContext- Overrides:
closein classAbstractNucleusContext
-
logConfigurationDetails
protected void logConfigurationDetails()
Description copied from class:AbstractNucleusContextConvenience method so that extending implementations can log their own configuration.- Specified by:
logConfigurationDetailsin classAbstractNucleusContext
-
-