Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.12.1
-
None
Description
While working in the plugin system recently, I discovered an inconsistent behavior in how @PluginValue works compared to @PluginAttribute. If a value is specified other than "value", then I'd expect that the contents of that value to be the attribute name in the configuration file.
For example:
@Plugin(name = "Foo", category = "Core", ...) public class Foo { // ... @PluginFactory public static Foo createFoo(@PluginValue("bar") String bar) { return new Foo(bar); } }
Expected XML config:
<Foo bar="baz"/>
Actual XML config:
<Foo value="baz"/>
Attachments
Issue Links
- causes
-
LOG4J2-2647 Validation blocks definition of script in properties configuration
- Resolved