use of io.atlasmap.spi.AtlasPropertyStrategy in project atlasmap by atlasmap.
the class PropertyModule method writeTargetValue.
@Override
public void writeTargetValue(AtlasInternalSession session) throws AtlasException {
AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy;
Field targetField = session.head().getTargetField();
if (targetField instanceof PropertyField) {
PropertyField targetPropertyField = (PropertyField) targetField;
strategy.writeProperty(session, targetPropertyField);
if (LOG.isDebugEnabled()) {
LOG.debug("Processed target PropertyField: Name={} Value={} Strategy={}", targetPropertyField.getName(), targetPropertyField.getValue(), strategy.getClass().getName());
}
}
}
use of io.atlasmap.spi.AtlasPropertyStrategy in project atlasmap by atlasmap.
the class PropertyModule method readSourceValue.
@Override
public void readSourceValue(AtlasInternalSession session) throws AtlasException {
AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy;
Field sourceField = session.head().getSourceField();
if (sourceField instanceof PropertyField) {
PropertyField sourcePropertyField = (PropertyField) sourceField;
strategy.readProperty(session, sourcePropertyField);
if (LOG.isDebugEnabled()) {
LOG.debug("Processed source PropertyField: Name={} Scope={} Value={} Strategy={}", sourcePropertyField.getName(), sourcePropertyField.getScope(), sourceField.getValue(), strategy.getClass().getName());
}
}
}
Aggregations