use of org.xwiki.filter.instance.input.InstanceInputEventGenerator in project xwiki-platform by xwiki.
the class InstanceInputFilterStreamFactory method getFilterInterfaces.
@Override
public Collection<Class<?>> getFilterInterfaces() throws FilterException {
List<InstanceInputEventGenerator> eventGenerators;
try {
eventGenerators = this.componentManagerProvider.get().getInstanceList(InstanceInputEventGenerator.class);
} catch (ComponentLookupException e) {
throw new FilterException("Failed to get registered instance of InstanceInputEventGenerator components", e);
}
Set<Class<?>> filters = new HashSet<Class<?>>();
filters.addAll(super.getFilterInterfaces());
for (InstanceInputEventGenerator generator : eventGenerators) {
filters.addAll(generator.getFilterInterfaces());
}
return filters;
}
Aggregations