builder:Rule{sProperties}: load properly

This commit is contained in:
Paul Campbell 2017-01-04 20:44:49 +00:00
parent 4a7a2871ac
commit 81bb3c02c4
2 changed files with 4 additions and 5 deletions

View file

@ -18,7 +18,7 @@ import java.util.Map;
@ToString
@Setter
@Getter
class Rule {
public class Rule {
private String name;

View file

@ -6,8 +6,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.HashSet;
import java.util.Set;
import java.util.List;
/**
* Properties defining the enabled rules for each level.
@ -18,8 +17,8 @@ import java.util.Set;
@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = "rules")
@ConfigurationProperties
class RulesProperties {
public Set<Rule> rules = new HashSet<>();
public List<Rule> rules;
}