Interface AnnotatedElementNameProvider<A extends Annotation>
- Type Parameters:
A
- plugin configuration annotation
- All Known Implementing Classes:
CategoryNameProvider
,NamedQualifierNameProvider
,PluginAttributeNameProvider
,PluginBuilderAttributeNameProvider
,PluginElementNameProvider
,PluginNameProvider
,PluginValueNameProvider
public interface AnnotatedElementNameProvider<A extends Annotation>
Extracts a specified name for some configurable annotated element. A specified name is one given in a non-empty
string in an annotation as opposed to relying on the default name taken from the annotated element itself.
-
Method Summary
Modifier and TypeMethodDescriptiongetSpecifiedName
(A annotation) Returns the specified name from this annotation if given orOptional.empty()
if none given.
-
Method Details
-
getSpecifiedName
Returns the specified name from this annotation if given orOptional.empty()
if none given.- Parameters:
annotation
- annotation value of configuration element- Returns:
- specified name of configuration element or empty if none specified
-