Package org.datanucleus.enhancer
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 org.datanucleus.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 TypeMethodDescriptionvoid
close()
Clear out resources for the supported services.protected void
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 Details
-
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)
-
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: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
-