Class EnhancementNucleusContextImpl
java.lang.Object
org.datanucleus.AbstractNucleusContext
org.datanucleus.enhancer.EnhancementNucleusContextImpl
- All Implemented Interfaces:
NucleusContext
NucleusContext to use when enhancing. Just provides basic plugin, type and metadata services.
-
Field Summary
Fields inherited from class AbstractNucleusContext
apiAdapter, classLoaderResolverClassName, classLoaderResolverMap, config, defaultCLR, metaDataManager, pluginManager, STARTUP_PROPERTIES, typeManager -
Constructor Summary
ConstructorsConstructorDescriptionEnhancementNucleusContextImpl(String apiName, Map startupProps) Constructor for the context.EnhancementNucleusContextImpl(String apiName, Map startupProps, PluginManager pluginMgr) Constructor for the context. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Clear out resources for the supported services.protected voidConvenience method so that extending implementations can log their own configuration.Methods inherited from class AbstractNucleusContext
applyDefaultProperties, getApiAdapter, getApiName, getClassLoaderResolver, getConfiguration, getMetaDataManager, getPluginManager, getTypeManager, initialise, logConfiguration, supportsORMMetaData
-
Constructor Details
-
EnhancementNucleusContextImpl
-
EnhancementNucleusContextImpl
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 Details
-
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
-