mirror of https://github.com/apache/jclouds.git
allow validator to be used outside class hierarchy
This commit is contained in:
parent
ab6c4181ba
commit
72c1583ffd
|
@ -43,7 +43,7 @@ public class DnsNameValidator extends Validator<String> {
|
||||||
private int max;
|
private int max;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
protected DnsNameValidator(@Named("jclouds.dns_name_length_min") int min,
|
public DnsNameValidator(@Named("jclouds.dns_name_length_min") int min,
|
||||||
@Named("jclouds.dns_name_length_max") int max) {
|
@Named("jclouds.dns_name_length_max") int max) {
|
||||||
this.min = min;
|
this.min = min;
|
||||||
this.max = max;
|
this.max = max;
|
||||||
|
|
Loading…
Reference in New Issue