in src/main/java/org/apache/sling/jcr/contentloader/internal/ContentReaderWhiteboard.java [56:79]
protected void bindContentReader(final ContentReader operation, final Map<String, Object> properties) {
final String[] extensions = PropertiesUtil.toStringArray(properties.get(ContentReader.PROPERTY_EXTENSIONS));
final String[] types = PropertiesUtil.toStringArray(properties.get(ContentReader.PROPERTY_TYPES));
if (extensions != null) {
synchronized (readersByExtension) {
for (final String extension : extensions) {
readersByExtension.put(extension, operation);
}
}
}
if (types != null) {
synchronized (this.readersByType) {
for (final String type : types) {
readersByType.put(type, operation);
}
}
}
// notify the listener that we have a new content reader
ContentReaderWhiteboardListener l = this.listener;
if (l != null) {
l.handleContentReaderAdded(operation);
}
}