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 TypeMethodDescriptionvoidcreateContext(AtlasContextFactory.Format format, InputStream stream) createContext(AtlasMapping mapping) createContext(File atlasMappingFile) createContext(URI atlasMappingUri) io.atlasmap.core.DefaultAtlasPreviewContextvoiddestroy()getConfigPackages(Class<?> clazz) static DefaultAtlasContextFactorystatic DefaultAtlasContextFactorygetInstance(boolean init) Returns the default singleton, possibly creating it if necessary.protected StringgetModuleName(Class<?> clazz) protected StringgetModuleUri(Class<?> clazz) getSupportedDataFormats(Class<?> clazz) getUuid()voidinit()voidprotected booleanisAtlasModuleInterface(Class<?> clazz, Class<?> moduleInterface) protected booleanisClassAtlasModule(Class<?> clazz, Class<?> moduleInterface) protected voidloadModules(String moduleClassProperty, Class<?> moduleInterface) protected voidvoidvoidsetCombineStrategy(AtlasCombineStrategy atlasCombineStrategy) voidsetModuleInfoRegistry(AtlasModuleInfoRegistry registry) protected voidvoidsetProperties(Map<String, String> properties) voidsetProperties(Properties properties) voidsetPropertyStrategy(AtlasPropertyStrategy atlasPropertyStrategy) voidsetSeparateStrategy(AtlasSeparateStrategy atlasSeparateStrategy) voidsetThreadName(String threadName) voidsetValidationService(AtlasValidationService atlasValidationService) protected void
-
Method Details
-
getInstance
-
getInstance
Returns the default singleton, possibly creating it if necessary.- Parameters:
init- iftruethe newly createdDefaultAtlasContextFactorywill be initialized upon creation viainit(); otherwise, the newly createdDefaultAtlasContextFactorywill not be initialized upon creation viainit()- Returns:
- the singleton
-
init
public void init()- Specified by:
initin interfaceAtlasContextFactory
-
init
-
setProperties
- Specified by:
setPropertiesin interfaceAtlasContextFactory
-
setProperties
- Specified by:
setPropertiesin interfaceAtlasContextFactory
-
getProperties
- Specified by:
getPropertiesin interfaceAtlasContextFactory
-
destroy
public void destroy()- Specified by:
destroyin interfaceAtlasContextFactory
-
createContext
- Specified by:
createContextin interfaceAtlasContextFactory- Throws:
AtlasException
-
createContext
- Specified by:
createContextin interfaceAtlasContextFactory- Throws:
AtlasException
-
createContext
- Throws:
AtlasException
-
createContext
public DefaultAtlasContext createContext(AtlasContextFactory.Format format, InputStream stream) throws AtlasException - Specified by:
createContextin interfaceAtlasContextFactory- Throws:
AtlasException
-
createPreviewContext
public io.atlasmap.core.DefaultAtlasPreviewContext createPreviewContext()- Specified by:
createPreviewContextin interfaceAtlasContextFactory
-
getClassName
- Specified by:
getClassNamein interfaceAtlasContextFactoryMXBean
-
getThreadName
- Specified by:
getThreadNamein interfaceAtlasContextFactoryMXBean
-
setThreadName
-
getVersion
- Specified by:
getVersionin interfaceAtlasContextFactoryMXBean
-
getUuid
- Specified by:
getUuidin interfaceAtlasContextFactoryMXBean
-
getJmxObjectName
-
getModuleInfoRegistry
-
setModuleInfoRegistry
-
getConversionService
- Specified by:
getConversionServicein interfaceAtlasContextFactory
-
getFieldActionService
- Specified by:
getFieldActionServicein interfaceAtlasContextFactory
-
getCombineStrategy
- Specified by:
getCombineStrategyin interfaceAtlasContextFactory
-
setCombineStrategy
-
getPropertyStrategy
- Specified by:
getPropertyStrategyin interfaceAtlasContextFactory
-
setPropertyStrategy
- Specified by:
setPropertyStrategyin interfaceAtlasContextFactory
-
getSeparateStrategy
- Specified by:
getSeparateStrategyin interfaceAtlasContextFactory
-
setSeparateStrategy
-
getValidationService
- Specified by:
getValidationServicein interfaceAtlasContextFactory
-
setValidationService
-
getClassLoader
-
addClassLoader
- Specified by:
addClassLoaderin interfaceAtlasContextFactory
-
setClassLoader
-
loadModules
-
unloadModules
protected void unloadModules() -
isClassAtlasModule
-
isAtlasModuleInterface
-
getModuleUri
-
getModuleName
-
getSupportedDataFormats
-
getConfigPackages
-
getAllModuleConfigPackages
-
registerFactoryJmx
-
setObjectName
- Throws:
MalformedObjectNameException
-