Class PluginElementVisitor

java.lang.Object
org.apache.logging.log4j.core.config.plugins.visitors.AbstractPluginVisitor<PluginElement>
org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor
All Implemented Interfaces:
PluginVisitor<PluginElement>

public class PluginElementVisitor extends AbstractPluginVisitor<PluginElement>
PluginVisitor implementation for PluginElement. Supports arrays as well as singular values.
  • Constructor Details

    • PluginElementVisitor

      public PluginElementVisitor()
  • Method Details

    • visit

      public Object visit(Configuration configuration, Node node, LogEvent event, StringBuilder log)
      Description copied from interface: PluginVisitor
      Visits a Node to obtain a value for constructing a Plugin object.
      Parameters:
      configuration - the current Configuration.
      node - the current Node corresponding to the Plugin object being created.
      event - the current LogEvent that caused this Plugin object to be made (optional).
      log - the StringBuilder being used to build a debug message.
      Returns:
      the converted value to be used for Plugin creation.