Class PluginBuilderAttributeNameProvider
java.lang.Object
org.apache.logging.log4j.plugins.name.PluginBuilderAttributeNameProvider
- All Implemented Interfaces:
AnnotatedElementNameProvider<PluginBuilderAttribute>
public class PluginBuilderAttributeNameProvider
extends Object
implements AnnotatedElementNameProvider<PluginBuilderAttribute>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSpecifiedName
(PluginBuilderAttribute annotation) Returns the specified name from this annotation if given orOptional.empty()
if none given.
-
Constructor Details
-
PluginBuilderAttributeNameProvider
public PluginBuilderAttributeNameProvider()
-
-
Method Details
-
getSpecifiedName
Description copied from interface:AnnotatedElementNameProvider
Returns the specified name from this annotation if given orOptional.empty()
if none given.- Specified by:
getSpecifiedName
in interfaceAnnotatedElementNameProvider<PluginBuilderAttribute>
- Parameters:
annotation
- annotation value of configuration element- Returns:
- specified name of configuration element or empty if none specified
-