java.lang.Object
org.apache.logging.log4j.core.config.plugins.visitors.PluginVisitors

public final class PluginVisitors extends Object
Utility class to locate an appropriate PluginVisitor implementation for an annotation.
  • Method Details

    • findVisitor

      public static PluginVisitor<? extends Annotation> findVisitor(Class<? extends Annotation> annotation)
      Creates a PluginVisitor instance for the given annotation class using metadata provided by the annotation's PluginVisitorStrategy annotation. This instance must be further populated with data to be useful. Such data is passed through both the setters and the visit method.
      Parameters:
      annotation - the Plugin annotation class to find a PluginVisitor for.
      Returns:
      a PluginVisitor instance if one could be created, or null otherwise.