Class PluginVisitors
java.lang.Object
org.apache.logging.log4j.core.config.plugins.visitors.PluginVisitors
Utility class to locate an appropriate
PluginVisitor
implementation for an annotation.-
Method Summary
Modifier and TypeMethodDescriptionstatic PluginVisitor<? extends Annotation>
findVisitor
(Class<? extends Annotation> annotation) Creates a PluginVisitor instance for the given annotation class using metadata provided by the annotation'sPluginVisitorStrategy
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'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.
-