Skip to content
Snippets Groups Projects
Commit 9aab2af3 authored by srosse's avatar srosse
Browse files

OO-231: more configurable

parent df6769de
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,15 @@ public abstract class AbstractHierarchicalIndexer extends DefaultIndexer { ...@@ -65,6 +65,15 @@ public abstract class AbstractHierarchicalIndexer extends DefaultIndexer {
throw new StartupException("Configured indexer is not of type Indexer", cce); throw new StartupException("Configured indexer is not of type Indexer", cce);
} }
} }
public void addIndexer(Indexer indexer) {
try {
childIndexers.put(indexer.getSupportedTypeName(), indexer);
logDebug("Adding indexer from configuraton. TypeName=" + indexer.getSupportedTypeName());
} catch (ClassCastException cce) {
throw new StartupException("Configured indexer is not of type Indexer", cce);
}
}
/** /**
* Iterate over all child indexer define in indexer-list. * Iterate over all child indexer define in indexer-list.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment