-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add general ConfigurationExtension
mechanism
#2230
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
Conversation
c878ff2
to
e7b386a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really liked the idea Piotr! 🤩 I left some remarks. But the direction LGTM! 💯
log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationExtension.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/config/Configuration.java
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorConfiguration.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorConfiguration.java
Outdated
Show resolved
Hide resolved
d751752
to
031e59a
Compare
We introduce a general `ConfigurationExtension` mechanism that would allow external Log4j plugins to add additional elements as children of the `<Configuration>` element. This mechanism is used to remove all direct references to async components in `AbstractConfiguration`. The `<AsyncWaitStrategyFactory>` configuration element is renamed to `<Disruptor>`, while maintaining backward compatibility.
031e59a
to
709c593
Compare
Part of #2163 |
Do you have some suggestions on the naming of the new |
This PR is based on #2228.
We introduce a general
ConfigurationExtension
mechanism that would allow external Log4j plugins to add additional elements as children of the<Configuration>
element.This mechanism is used to remove all direct references to async components in
AbstractConfiguration
.The
<AsyncWaitStrategyFactory>
configuration element is renamed to<Disruptor>
, while maintaining backward compatibility.