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