Class PluginProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
All Implemented Interfaces:
Processor

@SupportedAnnotationTypes("org.apache.logging.log4j.core.config.plugins.Plugin") @SupportedOptions("log4j.plugin.processor.minAllowedMessageKind") public class PluginProcessor extends AbstractProcessor
Annotation processor for pre-scanning Log4j 2 plugins.
  • Field Details

    • EMPTY_ELEMENT_ARRAY

      private static final Element[] EMPTY_ELEMENT_ARRAY
    • SUPPRESS_WARNING_PUBLIC_SETTER_STRING

      private static final String SUPPRESS_WARNING_PUBLIC_SETTER_STRING
      See Also:
    • MIN_ALLOWED_MESSAGE_KIND_OPTION

      static final String MIN_ALLOWED_MESSAGE_KIND_OPTION
      Annotation processor option that controls the minimum Diagnostic.Kind of messages emitted by this processor.

      Some build environments (e.g. Maven with -Werror) treat compiler notes or warnings as errors. Setting this option to WARNING or ERROR suppresses informational notes emitted during normal processing.

      Accepted values (case-insensitive): NOTE, WARNING, MANDATORY_WARNING, ERROR, OTHER. Defaults to NOTE.

      See Also:
    • PLUGIN_CACHE_FILE

      public static final String PLUGIN_CACHE_FILE
      The location of the plugin cache data file. This file is written to by this processor, and read from by PluginManager.
      See Also:
    • processedElements

      private final List<Element> processedElements
    • pluginCache

      private final PluginCache pluginCache
    • minAllowedMessageKind

      private Diagnostic.Kind minAllowedMessageKind
    • PLUGIN_BUILDER_ATTRIBUTE_ANNOTATION

      private static final String PLUGIN_BUILDER_ATTRIBUTE_ANNOTATION
      See Also:
  • Constructor Details

    • PluginProcessor

      public PluginProcessor()
  • Method Details