-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XmlConfiguration set from property #3789
Comments
@sbordet @joakime @janbartel thoughts? |
+1 from me, I'm good with that syntax. |
Signed-off-by: Greg Wilkins <gregw@webtide.com>
I think it's a good idea. Just have to be sure some XML files aren't relying on the default value being set. |
@janbartel I've been reviewing the XMLs as I modify them and keeping defaults if they differ from what the class does by itself. I'd say I'm only 98% on this and need to review some more.... but the exercise does show how annoying it is to have defaults in more than one place! |
The jetty xml files have many
Set
clauses like:This means that during startup the setter is always called and there is a default value in the XML. It may improve startup time and reduce the duplication of default values if we implemented the following:
where the setter is only called if the property is actually set.
The text was updated successfully, but these errors were encountered: