Class Utils
java.lang.Object
io.micronaut.coherence.annotation.Utils
Annotation utilities.
- Since:
- 1.0
- Author:
- Jonathan Knight
-
Method Summary
Modifier and TypeMethodDescriptiongetFirstTopicName
(io.micronaut.core.annotation.AnnotationMetadata metadata) Return the first topic name from the providedannotation metadata
.static String[]
getSendToTopicNames
(io.micronaut.core.annotation.AnnotationMetadata metadata) Return an array of send-to topic names from the providedannotation metadata
.static String[]
getTopicNames
(io.micronaut.core.annotation.AnnotationMetadata metadata) Return an array of topic names from the providedannotation metadata
.
-
Method Details
-
getFirstTopicName
public static Optional<String> getFirstTopicName(io.micronaut.core.annotation.AnnotationMetadata metadata) Return the first topic name from the providedannotation metadata
.- Parameters:
metadata
-annotation metadata
- Returns:
- the first topic name from the provided
annotation metadata
, if any.
-
getTopicNames
Return an array of topic names from the providedannotation metadata
.- Parameters:
metadata
-annotation metadata
- Returns:
- an array of topic names from the provided
annotation metadata
. A zero-length array will be returned if no topic names are present
-
getSendToTopicNames
public static String[] getSendToTopicNames(io.micronaut.core.annotation.AnnotationMetadata metadata) Return an array of send-to topic names from the providedannotation metadata
.- Parameters:
metadata
-annotation metadata
- Returns:
- an array of send-to topic names from the provided
annotation metadata
. A zero-length array will be returned if no topic names are present
-