Class PluginBuilderAttributeVisitor
java.lang.Object
org.apache.logging.log4j.core.config.plugins.visitors.AbstractPluginVisitor<PluginBuilderAttribute>
org.apache.logging.log4j.core.config.plugins.visitors.PluginBuilderAttributeVisitor
- All Implemented Interfaces:
PluginVisitor<PluginBuilderAttribute>
PluginVisitor for PluginBuilderAttribute. If
null
is returned for the
visit(org.apache.logging.log4j.core.config.Configuration, org.apache.logging.log4j.core.config.Node, org.apache.logging.log4j.core.LogEvent, StringBuilder)
method, then the default value of the field should remain untouched.- See Also:
-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.config.plugins.visitors.AbstractPluginVisitor
aliases, annotation, clazz, conversionType, LOGGER, member, substitutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) Visits a Node to obtain a value for constructing a Plugin object.Methods inherited from class org.apache.logging.log4j.core.config.plugins.visitors.AbstractPluginVisitor
convert, removeAttributeValue, setAliases, setAnnotation, setConversionType, setMember, setStrSubstitutor
-
Constructor Details
-
PluginBuilderAttributeVisitor
public PluginBuilderAttributeVisitor()
-
-
Method Details
-
visit
Description copied from interface:PluginVisitor
Visits a Node to obtain a value for constructing a Plugin object.- Parameters:
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.- Returns:
- the converted value to be used for Plugin creation.
-