AsyncTaskHandle handle) {
AbstractIndexingStrategy<T> strategy;
// TODO add a strategy which uses TransMemoryStreamingDAO
if (clazz.equals(HTextFlowTarget.class)) {
strategy =
(AbstractIndexingStrategy<T>) new HTextFlowTargetIndexingStrategy();
} else {
strategy = new SimpleClassIndexingStrategy<T>(clazz);
}
return new ClassIndexer<T>(handle, clazz, strategy);
}