public class DefaultAtlasContextFactory extends Object implements io.atlasmap.api.AtlasContextFactory, io.atlasmap.mxbean.AtlasContextFactoryMXBean
| Modifier and Type | Method and Description |
|---|---|
void |
addClassLoader(ClassLoader cl) |
io.atlasmap.api.AtlasContext |
createContext(io.atlasmap.api.AtlasContextFactory.Format format,
InputStream stream) |
io.atlasmap.api.AtlasContext |
createContext(io.atlasmap.v2.AtlasMapping mapping) |
io.atlasmap.api.AtlasContext |
createContext(File atlasMappingFile) |
io.atlasmap.api.AtlasContext |
createContext(URI atlasMappingUri) |
io.atlasmap.core.DefaultAtlasPreviewContext |
createPreviewContext() |
void |
destroy() |
protected List<String> |
getAllModuleConfigPackages(io.atlasmap.spi.AtlasModuleInfoRegistry registry) |
CompoundClassLoader |
getClassLoader() |
String |
getClassName() |
io.atlasmap.spi.AtlasCombineStrategy |
getCombineStrategy() |
protected List<String> |
getConfigPackages(Class<?> clazz) |
io.atlasmap.spi.AtlasConversionService |
getConversionService() |
io.atlasmap.spi.AtlasFieldActionService |
getFieldActionService() |
static DefaultAtlasContextFactory |
getInstance() |
static DefaultAtlasContextFactory |
getInstance(boolean init)
Returns the default singleton, possibly creating it if necessary.
|
ObjectName |
getJmxObjectName() |
io.atlasmap.spi.AtlasModuleInfoRegistry |
getModuleInfoRegistry() |
protected String |
getModuleName(Class<?> clazz) |
protected String |
getModuleUri(Class<?> clazz) |
Map<String,String> |
getProperties() |
io.atlasmap.spi.AtlasPropertyStrategy |
getPropertyStrategy() |
io.atlasmap.spi.AtlasSeparateStrategy |
getSeparateStrategy() |
protected List<String> |
getSupportedDataFormats(Class<?> clazz) |
String |
getThreadName() |
String |
getUuid() |
io.atlasmap.api.AtlasValidationService |
getValidationService() |
String |
getVersion() |
void |
init() |
void |
init(CompoundClassLoader cl) |
protected boolean |
isAtlasModuleInterface(Class<?> clazz,
Class<?> moduleInterface) |
protected boolean |
isClassAtlasModule(Class<?> clazz,
Class<?> moduleInterface) |
protected void |
loadModules(String moduleClassProperty,
Class<?> moduleInterface) |
protected void |
registerFactoryJmx(DefaultAtlasContextFactory factory) |
void |
setClassLoader(CompoundClassLoader cl) |
void |
setCombineStrategy(io.atlasmap.spi.AtlasCombineStrategy atlasCombineStrategy) |
void |
setModuleInfoRegistry(io.atlasmap.spi.AtlasModuleInfoRegistry registry) |
protected void |
setObjectName() |
void |
setProperties(Map<String,String> properties) |
void |
setProperties(Properties properties) |
void |
setPropertyStrategy(io.atlasmap.spi.AtlasPropertyStrategy atlasPropertyStrategy) |
void |
setSeparateStrategy(io.atlasmap.spi.AtlasSeparateStrategy atlasSeparateStrategy) |
void |
setThreadName(String threadName) |
void |
setValidationService(io.atlasmap.api.AtlasValidationService atlasValidationService) |
protected void |
unloadModules() |
public static DefaultAtlasContextFactory getInstance()
public static DefaultAtlasContextFactory getInstance(boolean init)
init - if true the newly created DefaultAtlasContextFactory will be initialized upon
creation via init(); otherwise, the newly created DefaultAtlasContextFactory will not
be initialized upon creation via init()public void init()
init in interface io.atlasmap.api.AtlasContextFactorypublic void init(CompoundClassLoader cl)
public void setProperties(Map<String,String> properties)
setProperties in interface io.atlasmap.api.AtlasContextFactorypublic void setProperties(Properties properties)
setProperties in interface io.atlasmap.api.AtlasContextFactorypublic Map<String,String> getProperties()
getProperties in interface io.atlasmap.api.AtlasContextFactorypublic void destroy()
destroy in interface io.atlasmap.api.AtlasContextFactorypublic io.atlasmap.api.AtlasContext createContext(File atlasMappingFile) throws io.atlasmap.api.AtlasException
createContext in interface io.atlasmap.api.AtlasContextFactoryio.atlasmap.api.AtlasExceptionpublic io.atlasmap.api.AtlasContext createContext(URI atlasMappingUri) throws io.atlasmap.api.AtlasException
createContext in interface io.atlasmap.api.AtlasContextFactoryio.atlasmap.api.AtlasExceptionpublic io.atlasmap.api.AtlasContext createContext(io.atlasmap.v2.AtlasMapping mapping)
throws io.atlasmap.api.AtlasException
io.atlasmap.api.AtlasExceptionpublic io.atlasmap.api.AtlasContext createContext(io.atlasmap.api.AtlasContextFactory.Format format,
InputStream stream)
throws io.atlasmap.api.AtlasException
createContext in interface io.atlasmap.api.AtlasContextFactoryio.atlasmap.api.AtlasExceptionpublic io.atlasmap.core.DefaultAtlasPreviewContext createPreviewContext()
createPreviewContext in interface io.atlasmap.api.AtlasContextFactorypublic String getClassName()
getClassName in interface io.atlasmap.mxbean.AtlasContextFactoryMXBeanpublic String getThreadName()
getThreadName in interface io.atlasmap.mxbean.AtlasContextFactoryMXBeanpublic void setThreadName(String threadName)
public String getVersion()
getVersion in interface io.atlasmap.mxbean.AtlasContextFactoryMXBeanpublic String getUuid()
getUuid in interface io.atlasmap.mxbean.AtlasContextFactoryMXBeanpublic ObjectName getJmxObjectName()
public io.atlasmap.spi.AtlasModuleInfoRegistry getModuleInfoRegistry()
public void setModuleInfoRegistry(io.atlasmap.spi.AtlasModuleInfoRegistry registry)
public io.atlasmap.spi.AtlasConversionService getConversionService()
getConversionService in interface io.atlasmap.api.AtlasContextFactorypublic io.atlasmap.spi.AtlasFieldActionService getFieldActionService()
getFieldActionService in interface io.atlasmap.api.AtlasContextFactorypublic io.atlasmap.spi.AtlasCombineStrategy getCombineStrategy()
getCombineStrategy in interface io.atlasmap.api.AtlasContextFactorypublic void setCombineStrategy(io.atlasmap.spi.AtlasCombineStrategy atlasCombineStrategy)
public io.atlasmap.spi.AtlasPropertyStrategy getPropertyStrategy()
getPropertyStrategy in interface io.atlasmap.api.AtlasContextFactorypublic void setPropertyStrategy(io.atlasmap.spi.AtlasPropertyStrategy atlasPropertyStrategy)
setPropertyStrategy in interface io.atlasmap.api.AtlasContextFactorypublic io.atlasmap.spi.AtlasSeparateStrategy getSeparateStrategy()
getSeparateStrategy in interface io.atlasmap.api.AtlasContextFactorypublic void setSeparateStrategy(io.atlasmap.spi.AtlasSeparateStrategy atlasSeparateStrategy)
public io.atlasmap.api.AtlasValidationService getValidationService()
getValidationService in interface io.atlasmap.api.AtlasContextFactorypublic void setValidationService(io.atlasmap.api.AtlasValidationService atlasValidationService)
public CompoundClassLoader getClassLoader()
public void addClassLoader(ClassLoader cl)
addClassLoader in interface io.atlasmap.api.AtlasContextFactorypublic void setClassLoader(CompoundClassLoader cl)
protected void unloadModules()
protected boolean isAtlasModuleInterface(Class<?> clazz, Class<?> moduleInterface)
protected List<String> getAllModuleConfigPackages(io.atlasmap.spi.AtlasModuleInfoRegistry registry)
protected void registerFactoryJmx(DefaultAtlasContextFactory factory)
protected void setObjectName()
throws MalformedObjectNameException
MalformedObjectNameExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.