use of com.buschmais.jqassistant.core.plugin.schema.v1.RulesType 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