in src/main/java/org/apache/sling/clam/job/internal/JcrPropertyScanJobConsumer.java [164:180]
private void invokeScanResultHandlers(final ScanResult scanResult, final String path, final Integer index, final int propertyType, final String userId) {
if (scanResultHandlers != null) {
for (final JcrPropertyScanResultHandler scanResultHandler : scanResultHandlers) {
try {
if (index == null) { // single-value property
logger.debug("invoking scan result handler {} for single-value property: {}, {}, {}", scanResultHandler, path, propertyType, userId);
scanResultHandler.handleJcrPropertyScanResult(scanResult, path, propertyType, userId);
} else { // multi-value property
logger.debug("invoking scan result handler {} for multi-value property: {}, {}, {}, {}", scanResultHandler, path, index, propertyType, userId);
scanResultHandler.handleJcrPropertyScanResult(scanResult, path, index, propertyType, userId);
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
}
}
}