2012-02-28 29 views
0

我有一个验证组件:与属性文件设计密码验证

@Component("passwordValidator") 
@Scope("view") 
public class PasswordValidator implements Validator { 

    private int maxPasswordLength; 

} 

,我想设置的值从属性文件 属性maxPasswordLength我很困惑与依赖注入将它设置在编译时间之间或者在验证方法或@PostConstrcut方法中的每次验证期间?

你觉得呢?

回答

0

JSF 2.0和2.1不验证@PostConstruct,@Resource,@Inject等验证器。 JSF 2.2应该为此提供支持。