use of io.atlasmap.spi.AtlasModuleDetail in project atlasmap by atlasmap.
the class DefaultAtlasContextFactory method getSupportedDataFormats.
/**
* Gets the supported data formats
* @param clazz class
* @return a list of supported data formats
*/
protected List<String> getSupportedDataFormats(Class<?> clazz) {
List<String> dataFormats = null;
AtlasModuleDetail detail = clazz.getAnnotation(AtlasModuleDetail.class);
if (detail != null) {
dataFormats = new ArrayList<>();
String[] formats = detail.dataFormats();
for (String format : formats) {
dataFormats.add(format.trim());
}
}
if (LOG.isDebugEnabled()) {
LOG.debug("Module: {} supports data formats: {}", clazz.getCanonicalName(), dataFormats);
}
return dataFormats;
}
use of io.atlasmap.spi.AtlasModuleDetail in project atlasmap by atlasmap.
the class DefaultAtlasContextFactory method getConfigPackages.
/**
* Gets the config packages.
* @param clazz class
* @return a list of config packages
*/
protected List<String> getConfigPackages(Class<?> clazz) {
List<String> configPackages = null;
AtlasModuleDetail detail = clazz.getAnnotation(AtlasModuleDetail.class);
if (detail != null) {
configPackages = new ArrayList<>();
String[] packages = detail.configPackages();
for (String pkg : packages) {
configPackages.add(pkg.trim());
}
}
if (LOG.isDebugEnabled()) {
LOG.debug("Module: {} config packages: {}", clazz.getCanonicalName(), configPackages);
}
return configPackages;
}
Aggregations