deephacks/tools4j — Issue #25: Investigate: Qualifiers for choosing ValidationManager
Author: krisskross
Created: 2012-01-15 15:56:52+00:00
State: open

Qualifiers could be used to narrow what kind of object a validator can validate.

```Java
public class XxxValidator extends BeanValidator {
...
public List validate(
@XxxValidatable Object configurable) {..}
}
```

And the user of the framework chooses what validator it wants by annotating the configurable (for instance @BeanValidatable - jsr303), in this case XxxValidatable:

```Java
@Config(..)
@XxxValidatable
public class MyConfig {
@Max(10)
int size;
}
```