Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-598

Support more data types in plugin attributes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: 2.0-rc1
    • Fix Version/s: 2.0-rc2
    • Component/s: Core

      Description

      Currently, annotating plugin factory method parameters with @PluginAttribute only supports String types, but we use a lot of plugin attributes that could be automatically converted to primitive types. Now I'm not suggesting something as advanced as how Camel handles parameter injection (which does automatic non-trivial type conversion), but it would be great to support booleans, ints, longs, etc., to simplify quite a bit of extraneous string parsing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jvz Matt Sicker
                Reporter:
                jvz Matt Sicker
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: