Open gamerover98 opened 1 year ago
Many years ago, I had the same idea in #14 and ultimately felt it was too broad for the benefits:
PercentageProperty
SettingsManager
, that validation service can access the properties' current and default values, can change the values and retrigger a save. This is not a definitive no from my side but my current feeling. I'm currently rewriting the way property types are structured so this is anyway blocked for a while, giving us time to consider all aspects :smile:
(Btw, you probably don't want to implement ParameterizedType
in that example, but just have a bean class and then use the BeanProperty
constructor that takes a Class
argument. ParameterizedType
is a generic type declaration for something like List<String>
, where the base type would be List.class
and the type arguments in this example would be {String.class}
)
Description
Some Java frameworks, such as Spring Boot, provide comprehensive Java Bean Validation support for checking the values of DTOs, Entities, and more.
The current version of ConfigMe lacks these capabilities and makes the data checking annoying.
Scenario
@Size(min=1, max=10) @Comment("The size that the title will have") public static final Property TITLE_SIZE =
newProperty("title.size", 7);
Please note that this issue is a draft and may undergo changes.
Looking forward to your feedback and collaboration on this enhancement. Thank you 💯