Package io.atlasmap.core
Class DefaultAtlasContextFactory
java.lang.Object
io.atlasmap.core.DefaultAtlasContextFactory
- All Implemented Interfaces:
AtlasContextFactory
,AtlasContextFactoryMXBean
public class DefaultAtlasContextFactory
extends Object
implements AtlasContextFactory, AtlasContextFactoryMXBean
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.atlasmap.api.AtlasContextFactory
AtlasContextFactory.Format
-
Field Summary
Fields inherited from interface io.atlasmap.api.AtlasContextFactory
PROPERTY_ATLASMAP_CORE_VERSION
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createContext
(AtlasContextFactory.Format format, InputStream stream) createContext
(AtlasMapping mapping) createContext
(File atlasMappingFile) createContext
(URI atlasMappingUri) io.atlasmap.core.DefaultAtlasPreviewContext
void
destroy()
getConfigPackages
(Class<?> clazz) static DefaultAtlasContextFactory
static DefaultAtlasContextFactory
getInstance
(boolean init) Returns the default singleton, possibly creating it if necessary.protected String
getModuleName
(Class<?> clazz) protected String
getModuleUri
(Class<?> clazz) getSupportedDataFormats
(Class<?> clazz) getUuid()
void
init()
void
protected boolean
isAtlasModuleInterface
(Class<?> clazz, Class<?> moduleInterface) protected boolean
isClassAtlasModule
(Class<?> clazz, Class<?> moduleInterface) protected void
loadModules
(String moduleClassProperty, Class<?> moduleInterface) protected void
void
void
setCombineStrategy
(AtlasCombineStrategy atlasCombineStrategy) void
setModuleInfoRegistry
(AtlasModuleInfoRegistry registry) protected void
void
setProperties
(Map<String, String> properties) void
setProperties
(Properties properties) void
setPropertyStrategy
(AtlasPropertyStrategy atlasPropertyStrategy) void
setSeparateStrategy
(AtlasSeparateStrategy atlasSeparateStrategy) void
setThreadName
(String threadName) void
setValidationService
(AtlasValidationService atlasValidationService) protected void
-
Method Details
-
getInstance
-
getInstance
Returns the default singleton, possibly creating it if necessary.- Parameters:
init
- iftrue
the newly createdDefaultAtlasContextFactory
will be initialized upon creation viainit()
; otherwise, the newly createdDefaultAtlasContextFactory
will not be initialized upon creation viainit()
- Returns:
- the singleton
-
init
public void init()- Specified by:
init
in interfaceAtlasContextFactory
-
init
-
setProperties
- Specified by:
setProperties
in interfaceAtlasContextFactory
-
setProperties
- Specified by:
setProperties
in interfaceAtlasContextFactory
-
getProperties
- Specified by:
getProperties
in interfaceAtlasContextFactory
-
destroy
public void destroy()- Specified by:
destroy
in interfaceAtlasContextFactory
-
createContext
- Specified by:
createContext
in interfaceAtlasContextFactory
- Throws:
AtlasException
-
createContext
- Specified by:
createContext
in interfaceAtlasContextFactory
- Throws:
AtlasException
-
createContext
- Throws:
AtlasException
-
createContext
public DefaultAtlasContext createContext(AtlasContextFactory.Format format, InputStream stream) throws AtlasException - Specified by:
createContext
in interfaceAtlasContextFactory
- Throws:
AtlasException
-
createPreviewContext
public io.atlasmap.core.DefaultAtlasPreviewContext createPreviewContext()- Specified by:
createPreviewContext
in interfaceAtlasContextFactory
-
getClassName
- Specified by:
getClassName
in interfaceAtlasContextFactoryMXBean
-
getThreadName
- Specified by:
getThreadName
in interfaceAtlasContextFactoryMXBean
-
setThreadName
-
getVersion
- Specified by:
getVersion
in interfaceAtlasContextFactoryMXBean
-
getUuid
- Specified by:
getUuid
in interfaceAtlasContextFactoryMXBean
-
getJmxObjectName
-
getModuleInfoRegistry
-
setModuleInfoRegistry
-
getConversionService
- Specified by:
getConversionService
in interfaceAtlasContextFactory
-
getFieldActionService
- Specified by:
getFieldActionService
in interfaceAtlasContextFactory
-
getCombineStrategy
- Specified by:
getCombineStrategy
in interfaceAtlasContextFactory
-
setCombineStrategy
-
getPropertyStrategy
- Specified by:
getPropertyStrategy
in interfaceAtlasContextFactory
-
setPropertyStrategy
- Specified by:
setPropertyStrategy
in interfaceAtlasContextFactory
-
getSeparateStrategy
- Specified by:
getSeparateStrategy
in interfaceAtlasContextFactory
-
setSeparateStrategy
-
getValidationService
- Specified by:
getValidationService
in interfaceAtlasContextFactory
-
setValidationService
-
getClassLoader
-
addClassLoader
- Specified by:
addClassLoader
in interfaceAtlasContextFactory
-
setClassLoader
-
loadModules
-
unloadModules
protected void unloadModules() -
isClassAtlasModule
-
isAtlasModuleInterface
-
getModuleUri
-
getModuleName
-
getSupportedDataFormats
-
getConfigPackages
-
getAllModuleConfigPackages
-
registerFactoryJmx
-
setObjectName
- Throws:
MalformedObjectNameException
-