A - the Annotation type.public interface PluginVisitor<A extends java.lang.annotation.Annotation>
Node, doing any relevant type conversion, and returning a
parsed value for that variable. Implementations must be constructable using the default constructor.| Modifier and Type | Method and Description |
|---|---|
PluginVisitor<A> |
setAliases(java.lang.String... aliases)
Sets the list of aliases to use for this visit.
|
PluginVisitor<A> |
setAnnotation(java.lang.annotation.Annotation annotation)
Sets the Annotation to be used for this.
|
PluginVisitor<A> |
setConversionType(java.lang.Class<?> conversionType)
Sets the class to convert the plugin value to on this visit.
|
PluginVisitor<A> |
setMember(java.lang.reflect.Member member)
Sets the Member that this visitor is being used for injection upon.
|
PluginVisitor<A> |
setStrSubstitutor(StrSubstitutor substitutor)
Sets the StrSubstitutor to use for converting raw strings before type conversion.
|
java.lang.Object |
visit(Configuration configuration,
Node node,
LogEvent event,
java.lang.StringBuilder log)
Visits a Node to obtain a value for constructing a Plugin object.
|
PluginVisitor<A> setAnnotation(java.lang.annotation.Annotation annotation)
annotation - the Annotation instance.this.java.lang.NullPointerException - if the argument is null.PluginVisitor<A> setAliases(java.lang.String... aliases)
aliases - the list of aliases to use.this.PluginVisitor<A> setConversionType(java.lang.Class<?> conversionType)
conversionType - the type to convert the plugin string to (if applicable).this.java.lang.NullPointerException - if the argument is null.PluginVisitor<A> setStrSubstitutor(StrSubstitutor substitutor)
Configuration.substitutor - the StrSubstitutor to use on plugin values.this.java.lang.NullPointerException - if the argument is null.PluginVisitor<A> setMember(java.lang.reflect.Member member)
member - the member this visitor is parsing a value for.this.java.lang.Object visit(Configuration configuration, Node node, LogEvent event, java.lang.StringBuilder log)
configuration - the current Configuration.node - the current Node corresponding to the Plugin object being created.event - the current LogEvent that caused this Plugin object to be made (optional).log - the StringBuilder being used to build a debug message.