Package io.atlasmap.spi
Interface AtlasModule
- All Known Implementing Classes:
BaseAtlasModule
,ConstantModule
,CsvModule
,DfdlModule
,JavaModule
,JsonModule
,PropertyModule
,XmlModule
public interface AtlasModule
A SPI contract between AtlasMap core and modules. AtlasMap core engine invokes those
methods while processing mappings.
-
Method Summary
Modifier and TypeMethodDescriptioncloneField
(Field field) void
destroy()
getDocId()
getMode()
getUri()
void
init()
isSupportedField
(Field field) void
populateTargetField
(AtlasInternalSession session) Populate target field value, usually by just copy from source field value.void
void
void
void
void
void
processPreValidation
(AtlasInternalSession session) void
readSourceValue
(AtlasInternalSession session) Read source field value from source document and store into source field object.void
setClassLoader
(ClassLoader classLoader) void
setConversionService
(AtlasConversionService atlasConversionService) void
void
void
setDocName
(String docName) void
setFieldActionService
(AtlasFieldActionService atlasFieldActionService) void
setMode
(AtlasModuleMode atlasModuleMode) void
void
writeTargetValue
(AtlasInternalSession session) Write target field value into target document.
-
Method Details
-
init
- Throws:
AtlasException
-
destroy
- Throws:
AtlasException
-
setClassLoader
-
getClassLoader
ClassLoader getClassLoader() -
processPreValidation
- Throws:
AtlasException
-
processPreSourceExecution
- Throws:
AtlasException
-
processPreTargetExecution
- Throws:
AtlasException
-
readSourceValue
Read source field value from source document and store into source field object.- Parameters:
session
- current session- Throws:
AtlasException
- failed to read source value
-
populateTargetField
Populate target field value, usually by just copy from source field value. Also apply type converters where it's needed.- Parameters:
session
- current session- Throws:
AtlasException
- failed to populate target field value
-
writeTargetValue
Write target field value into target document.- Parameters:
session
- current session- Throws:
AtlasException
- faield to write target field value
-
processPostSourceExecution
- Throws:
AtlasException
-
processPostTargetExecution
- Throws:
AtlasException
-
processPostValidation
- Throws:
AtlasException
-
getMode
AtlasModuleMode getMode() -
setMode
-
getConversionService
AtlasConversionService getConversionService() -
setConversionService
-
getFieldActionService
AtlasFieldActionService getFieldActionService() -
setFieldActionService
-
getCollectionHelper
AtlasCollectionHelper getCollectionHelper() -
listSupportedModes
List<AtlasModuleMode> listSupportedModes() -
getDocId
String getDocId() -
setDocId
-
getDocName
String getDocName() -
setDocName
-
getUri
String getUri() -
setUri
-
getUriDataType
String getUriDataType() -
getUriParameters
-
isStatisticsSupported
Boolean isStatisticsSupported() -
isStatisticsEnabled
Boolean isStatisticsEnabled() -
isSupportedField
-
cloneField
- Throws:
AtlasException
-
setDataSourceMetadata
-
getDataSourceMetadata
DataSourceMetadata getDataSourceMetadata() -
createField
Field createField()
-