Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.logging.log4j.core.config.plugins.visitors
Class PluginVisitors

    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 Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.