Methods in configuration proxies could be annotated with constraints that limit the values that the method will accept from the underlying config. For example, a method annotated such as
@Min(0)
@Max(100)
public int getSettingWithConstraint()
would fail if the value from the underlying config is not a positive integer less than 101.
Methods in configuration proxies could be annotated with constraints that limit the values that the method will accept from the underlying config. For example, a method annotated such as
would fail if the value from the underlying config is not a positive integer less than 101.