Class PluginNameProvider
java.lang.Object
org.apache.logging.log4j.plugins.name.PluginNameProvider
- All Implemented Interfaces:
AnnotatedElementNameProvider<Plugin>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSpecifiedName
(Plugin annotation) Returns the specified name from this annotation if given orOptional.empty()
if none given.
-
Constructor Details
-
PluginNameProvider
public PluginNameProvider()
-
-
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<Plugin>
- Parameters:
annotation
- annotation value of configuration element- Returns:
- specified name of configuration element or empty if none specified
-