Refactor RegexFilter to use a plugin builder, restore configurable re…#4119
Open
ramanathan1504 wants to merge 2 commits into
Open
Refactor RegexFilter to use a plugin builder, restore configurable re…#4119ramanathan1504 wants to merge 2 commits into
ramanathan1504 wants to merge 2 commits into
Conversation
…gex patternFlags via a CSV attribute, and improve handling of useRawMsg with a primitive boolean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3086
This pull request refactors the
RegexFilterto use a plugin builder pattern, restores support for configuring regexpatternFlagsvia a comma-separated attribute, and improves robustness around theuseRawMsgoption. It also adds tests and documentation for the new pattern flags feature.RegexFilter Refactor and Feature Restoration:
RegexFilterto use a plugin builder (Builderclass), simplifying construction and improving maintainability. The builder now uses a primitive boolean foruseRawMsgto avoid null-unboxing issues. [1] [2]patternFlagsvia a comma-separated string attribute (e.g.,patternFlags="CASE_INSENSITIVE"), replacing the previous, more cumbersome approach.Testing Improvements:
testPatternFlagsFromConfiguration) inRegexFilterTest.javato verify that pattern flags are correctly loaded from configuration files.RegexFilterPatternFlagsTest.xmlto exercise the new pattern flags feature.Documentation and Changelog:
patternFlagsattribute, listing all supported flag values and usage.patternFlags, and the builder improvements.Other:
2.26.0to reflect the new feature.