Class PluginVisitors
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.visitors.PluginVisitors
-
public final class PluginVisitors extends java.lang.Object
Utility class to locate an appropriatePluginVisitor
implementation for an annotation.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PluginVisitors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PluginVisitor<? extends java.lang.annotation.Annotation>
findVisitor(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Creates a PluginVisitor instance for the given annotation class using metadata provided by the annotation'sPluginVisitorStrategy
annotation.
-
-
-
Field Detail
-
LOGGER
private static final Logger LOGGER
-
-
Method Detail
-
findVisitor
public static PluginVisitor<? extends java.lang.annotation.Annotation> findVisitor(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Creates a PluginVisitor instance for the given annotation class using metadata provided by the annotation'sPluginVisitorStrategy
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.
-
-