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) voiddestroy()getDocId()getMode()getUri()voidinit()isSupportedField(Field field) voidpopulateTargetField(AtlasInternalSession session) Populate target field value, usually by just copy from source field value.voidvoidvoidvoidvoidvoidprocessPreValidation(AtlasInternalSession session) voidreadSourceValue(AtlasInternalSession session) Read source field value from source document and store into source field object.voidsetClassLoader(ClassLoader classLoader) voidsetConversionService(AtlasConversionService atlasConversionService) voidvoidvoidsetDocName(String docName) voidsetFieldActionService(AtlasFieldActionService atlasFieldActionService) voidsetMode(AtlasModuleMode atlasModuleMode) voidvoidwriteTargetValue(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()
-