@SupportedAnnotationTypes(value="org.apache.logging.log4j.core.config.plugins.*")
public class PluginProcessor
extends javax.annotation.processing.AbstractProcessor
| Modifier and Type | Class and Description |
|---|---|
private static class |
PluginProcessor.PluginAliasesElementVisitor
ElementVisitor to scan the PluginAliases annotation.
|
private static class |
PluginProcessor.PluginElementVisitor
ElementVisitor to scan the Plugin annotation.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PLUGIN_CACHE_FILE
The location of the plugin cache data file.
|
private PluginCache |
pluginCache |
| Constructor and Description |
|---|
PluginProcessor() |
| Modifier and Type | Method and Description |
|---|---|
private void |
collectPlugins(java.lang.Iterable<? extends javax.lang.model.element.Element> elements) |
private void |
error(java.lang.CharSequence message) |
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv) |
private void |
writeCacheFile(javax.lang.model.element.Element... elements) |
public static final java.lang.String PLUGIN_CACHE_FILE
PluginManager.private final PluginCache pluginCache
public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface javax.annotation.processing.ProcessorgetSupportedSourceVersion in class javax.annotation.processing.AbstractProcessorpublic boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv)
process in interface javax.annotation.processing.Processorprocess in class javax.annotation.processing.AbstractProcessorprivate void error(java.lang.CharSequence message)
private void collectPlugins(java.lang.Iterable<? extends javax.lang.model.element.Element> elements)
private void writeCacheFile(javax.lang.model.element.Element... elements)
throws java.io.IOException
java.io.IOException