add the repository name to the parameters of AnnotationRuleRepository.create()

This commit is contained in:
simonbrandhof 2010-09-24 12:28:01 +00:00
parent e0d64b3648
commit 543451b116

View File

@ -42,13 +42,14 @@ public final class AnnotationRuleRepository extends RuleRepository {
/**
* Use the factory method create()
*/
private AnnotationRuleRepository(String key, String language, Collection<Class> annotatedClasses) {
private AnnotationRuleRepository(String key, String language, String name, Collection<Class> annotatedClasses) {
super(key, language);
setName(name);
this.annotatedClasses = annotatedClasses;
}
public static AnnotationRuleRepository create(String key, String language, Collection<Class> annotatedClasses) {
return new AnnotationRuleRepository(key, language, annotatedClasses);
public static AnnotationRuleRepository create(String key, String language, String name, Collection<Class> annotatedClasses) {
return new AnnotationRuleRepository(key, language, name, annotatedClasses);
}
@Override