Re: Plugin attribute constraint validation

2022-02-20 Thread Ralph Goers
As usual you ask really good questions. I made the builders Plugins primarily because it was an easy way to identify them along with the class they are emulating. Other than that, the log4j-plugins builder type support really can’t be used as is because it operates on a Node hierarchy while w

Re: Plugin attribute constraint validation

2022-02-20 Thread Matt Sicker
I added the annotations a while ago to work on reducing duplication of constraint validation littered throughout the codebase. However, given that it is only invoked during plugin object construction, there’s still plenty of manual checks for things (and not much in the way of validators impleme

Plugin attribute constraint validation

2022-02-20 Thread Piotr P. Karwasz
Hello, Inspired by the StackOverflow question [1], where `log4j-1.2-api` provided the user with a totally useless error message, I was looking at the validation of components from the perspective of a Log4j 1.x bridge `Builder` plugin. From what I found there are 3 ways to validate parameters: 1.