Package io.atlasmap.core
Class DefaultAtlasContextFactory
- java.lang.Object
-
- io.atlasmap.core.DefaultAtlasContextFactory
-
- All Implemented Interfaces:
io.atlasmap.api.AtlasContextFactory,io.atlasmap.mxbean.AtlasContextFactoryMXBean
public class DefaultAtlasContextFactory extends Object implements io.atlasmap.api.AtlasContextFactory, io.atlasmap.mxbean.AtlasContextFactoryMXBean
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClassLoader(ClassLoader cl)DefaultAtlasContextcreateContext(io.atlasmap.api.AtlasContextFactory.Format format, InputStream stream)DefaultAtlasContextcreateContext(io.atlasmap.v2.AtlasMapping mapping)DefaultAtlasContextcreateContext(File atlasMappingFile)DefaultAtlasContextcreateContext(URI atlasMappingUri)io.atlasmap.core.DefaultAtlasPreviewContextcreatePreviewContext()voiddestroy()protected List<String>getAllModuleConfigPackages(io.atlasmap.spi.AtlasModuleInfoRegistry registry)CompoundClassLoadergetClassLoader()StringgetClassName()io.atlasmap.spi.AtlasCombineStrategygetCombineStrategy()protected List<String>getConfigPackages(Class<?> clazz)DefaultAtlasConversionServicegetConversionService()DefaultAtlasFieldActionServicegetFieldActionService()static DefaultAtlasContextFactorygetInstance()static DefaultAtlasContextFactorygetInstance(boolean init)Returns the default singleton, possibly creating it if necessary.ObjectNamegetJmxObjectName()io.atlasmap.spi.AtlasModuleInfoRegistrygetModuleInfoRegistry()protected StringgetModuleName(Class<?> clazz)protected StringgetModuleUri(Class<?> clazz)Map<String,String>getProperties()io.atlasmap.spi.AtlasPropertyStrategygetPropertyStrategy()io.atlasmap.spi.AtlasSeparateStrategygetSeparateStrategy()protected List<String>getSupportedDataFormats(Class<?> clazz)StringgetThreadName()StringgetUuid()io.atlasmap.api.AtlasValidationServicegetValidationService()StringgetVersion()voidinit()voidinit(CompoundClassLoader cl)protected booleanisAtlasModuleInterface(Class<?> clazz, Class<?> moduleInterface)protected booleanisClassAtlasModule(Class<?> clazz, Class<?> moduleInterface)protected voidloadModules(String moduleClassProperty, Class<?> moduleInterface)protected voidregisterFactoryJmx(DefaultAtlasContextFactory factory)voidsetClassLoader(CompoundClassLoader cl)voidsetCombineStrategy(io.atlasmap.spi.AtlasCombineStrategy atlasCombineStrategy)voidsetModuleInfoRegistry(io.atlasmap.spi.AtlasModuleInfoRegistry registry)protected voidsetObjectName()voidsetProperties(Map<String,String> properties)voidsetProperties(Properties properties)voidsetPropertyStrategy(io.atlasmap.spi.AtlasPropertyStrategy atlasPropertyStrategy)voidsetSeparateStrategy(io.atlasmap.spi.AtlasSeparateStrategy atlasSeparateStrategy)voidsetThreadName(String threadName)voidsetValidationService(io.atlasmap.api.AtlasValidationService atlasValidationService)protected voidunloadModules()
-
-
-
Method Detail
-
getInstance
public static DefaultAtlasContextFactory getInstance()
-
getInstance
public static DefaultAtlasContextFactory getInstance(boolean init)
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 interfaceio.atlasmap.api.AtlasContextFactory
-
init
public void init(CompoundClassLoader cl)
-
setProperties
public void setProperties(Map<String,String> properties)
- Specified by:
setPropertiesin interfaceio.atlasmap.api.AtlasContextFactory
-
setProperties
public void setProperties(Properties properties)
- Specified by:
setPropertiesin interfaceio.atlasmap.api.AtlasContextFactory
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getPropertiesin interfaceio.atlasmap.api.AtlasContextFactory
-
destroy
public void destroy()
- Specified by:
destroyin interfaceio.atlasmap.api.AtlasContextFactory
-
createContext
public DefaultAtlasContext createContext(File atlasMappingFile) throws io.atlasmap.api.AtlasException
- Specified by:
createContextin interfaceio.atlasmap.api.AtlasContextFactory- Throws:
io.atlasmap.api.AtlasException
-
createContext
public DefaultAtlasContext createContext(URI atlasMappingUri) throws io.atlasmap.api.AtlasException
- Specified by:
createContextin interfaceio.atlasmap.api.AtlasContextFactory- Throws:
io.atlasmap.api.AtlasException
-
createContext
public DefaultAtlasContext createContext(io.atlasmap.v2.AtlasMapping mapping) throws io.atlasmap.api.AtlasException
- Throws:
io.atlasmap.api.AtlasException
-
createContext
public DefaultAtlasContext createContext(io.atlasmap.api.AtlasContextFactory.Format format, InputStream stream) throws io.atlasmap.api.AtlasException
- Specified by:
createContextin interfaceio.atlasmap.api.AtlasContextFactory- Throws:
io.atlasmap.api.AtlasException
-
createPreviewContext
public io.atlasmap.core.DefaultAtlasPreviewContext createPreviewContext()
- Specified by:
createPreviewContextin interfaceio.atlasmap.api.AtlasContextFactory
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceio.atlasmap.mxbean.AtlasContextFactoryMXBean
-
getThreadName
public String getThreadName()
- Specified by:
getThreadNamein interfaceio.atlasmap.mxbean.AtlasContextFactoryMXBean
-
setThreadName
public void setThreadName(String threadName)
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceio.atlasmap.mxbean.AtlasContextFactoryMXBean
-
getUuid
public String getUuid()
- Specified by:
getUuidin interfaceio.atlasmap.mxbean.AtlasContextFactoryMXBean
-
getJmxObjectName
public ObjectName getJmxObjectName()
-
getModuleInfoRegistry
public io.atlasmap.spi.AtlasModuleInfoRegistry getModuleInfoRegistry()
-
setModuleInfoRegistry
public void setModuleInfoRegistry(io.atlasmap.spi.AtlasModuleInfoRegistry registry)
-
getConversionService
public DefaultAtlasConversionService getConversionService()
- Specified by:
getConversionServicein interfaceio.atlasmap.api.AtlasContextFactory
-
getFieldActionService
public DefaultAtlasFieldActionService getFieldActionService()
- Specified by:
getFieldActionServicein interfaceio.atlasmap.api.AtlasContextFactory
-
getCombineStrategy
public io.atlasmap.spi.AtlasCombineStrategy getCombineStrategy()
- Specified by:
getCombineStrategyin interfaceio.atlasmap.api.AtlasContextFactory
-
setCombineStrategy
public void setCombineStrategy(io.atlasmap.spi.AtlasCombineStrategy atlasCombineStrategy)
-
getPropertyStrategy
public io.atlasmap.spi.AtlasPropertyStrategy getPropertyStrategy()
- Specified by:
getPropertyStrategyin interfaceio.atlasmap.api.AtlasContextFactory
-
setPropertyStrategy
public void setPropertyStrategy(io.atlasmap.spi.AtlasPropertyStrategy atlasPropertyStrategy)
- Specified by:
setPropertyStrategyin interfaceio.atlasmap.api.AtlasContextFactory
-
getSeparateStrategy
public io.atlasmap.spi.AtlasSeparateStrategy getSeparateStrategy()
- Specified by:
getSeparateStrategyin interfaceio.atlasmap.api.AtlasContextFactory
-
setSeparateStrategy
public void setSeparateStrategy(io.atlasmap.spi.AtlasSeparateStrategy atlasSeparateStrategy)
-
getValidationService
public io.atlasmap.api.AtlasValidationService getValidationService()
- Specified by:
getValidationServicein interfaceio.atlasmap.api.AtlasContextFactory
-
setValidationService
public void setValidationService(io.atlasmap.api.AtlasValidationService atlasValidationService)
-
getClassLoader
public CompoundClassLoader getClassLoader()
-
addClassLoader
public void addClassLoader(ClassLoader cl)
- Specified by:
addClassLoaderin interfaceio.atlasmap.api.AtlasContextFactory
-
setClassLoader
public void setClassLoader(CompoundClassLoader cl)
-
unloadModules
protected void unloadModules()
-
isAtlasModuleInterface
protected boolean isAtlasModuleInterface(Class<?> clazz, Class<?> moduleInterface)
-
getAllModuleConfigPackages
protected List<String> getAllModuleConfigPackages(io.atlasmap.spi.AtlasModuleInfoRegistry registry)
-
registerFactoryJmx
protected void registerFactoryJmx(DefaultAtlasContextFactory factory)
-
setObjectName
protected void setObjectName() throws MalformedObjectNameException- Throws:
MalformedObjectNameException
-
-