-
@Target({TYPE,FIELD,METHOD}) @Retention(RUNTIME) public @interface Name
Annotation that overrides the default name for an element, for instance when the default package for an event is not appropriate.The name must be a valid identifiers in the Java language, for example
"com.example.MyEvent"
for an event class or"message"
for an event field.- Since:
- 9
-
-
Element Detail
-
value
String value
Returns the name.- Returns:
- the name
-
-