public final class MessagingAnnotationUtils extends ObjectSE
| 修飾子と型 | メソッドと説明 |
|---|---|
static StringSE | endpointIdValue(MethodSE method) 存在する場合は、 EndpointId.value() プロパティを返します。 |
static MethodSE | findAnnotatedMethod(ObjectSE target, ClassSE<? extends AnnotationSE> annotationType) |
static AnnotationSE | findMessagePartAnnotation(AnnotationSE[] annotations, boolean payloads) |
static boolean | hasValue(ObjectSE value) |
static <T> T | resolveAttribute(ListSE<AnnotationSE> annotations, StringSE name, ClassSE<T> requiredType) アノテーション階層から属性値を取得し、アノテーション付きメソッドに最も近い最初の空でない値を返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static <T> T resolveAttribute(ListSE<AnnotationSE> annotations, StringSE name, ClassSE<T> requiredType)
T - 型。annotations - 順番にメタアノテーション(最も近いものから)。name - 属性名。requiredType - 期待される型。public static boolean hasValue(ObjectSE value)
public static MethodSE findAnnotatedMethod(ObjectSE target, ClassSE<? extends AnnotationSE> annotationType)
public static AnnotationSE findMessagePartAnnotation(AnnotationSE[] annotations, boolean payloads)
annotations - スキャンするアノテーション。payloads - @Payloads を検出する必要がある場合は true。null。MessagingException - 複数の Payload、Header、Headers アノテーションが提示されている場合。public static StringSE endpointIdValue(MethodSE method)
EndpointId.value() プロパティを返します。method - メソッド。