use of com.buschmais.jqassistant.core.rule.api.source.ClasspathRuleSource in project jqa-core-framework by buschmais.
the class RulePluginRepositoryImpl method getRuleSources.
private List<RuleSource> getRuleSources(List<JqassistantPlugin> plugins) {
List<RuleSource> sources = new ArrayList<>();
for (JqassistantPlugin plugin : plugins) {
RulesType rulesType = plugin.getRules();
if (rulesType != null) {
for (String resource : rulesType.getResource()) {
String resourceName = RULE_RESOURCE_PATH + resource;
sources.add(new ClasspathRuleSource(classLoader, resourceName));
}
}
}
return sources;
}
Aggregations