クラス AnnotationMethodMatcher
java.lang.ObjectSE
org.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.annotation.AnnotationMethodMatcher
- 実装されているすべてのインターフェース:
MethodMatcher
メソッドに存在する特定のアノテーションを検索する単純な
MethodMatcher(呼び出されたインターフェースのメソッド(存在する場合)と、ターゲットクラスの対応するメソッドの両方をチェックします)。- 導入:
- 2.0
- 作成者:
- Juergen Hoeller, Sam Brannen
- 関連事項:
フィールドのサマリー
インターフェース org.springframework.aop.MethodMatcher から継承されたフィールド
TRUEコンストラクターの概要
コンストラクターコンストラクター説明AnnotationMethodMatcher(ClassSE<? extends AnnotationSE> annotationType) 指定されたアノテーション型の新しい AnnotationClassFilter を作成します。AnnotationMethodMatcher(ClassSE<? extends AnnotationSE> annotationType, boolean checkInherited) 指定されたアノテーション型の新しい AnnotationClassFilter を作成します。メソッドのサマリー
クラス org.springframework.aop.support.StaticMethodMatcher から継承されたメソッド
isRuntime, matches
コンストラクターの詳細
AnnotationMethodMatcher
指定されたアノテーション型の新しい AnnotationClassFilter を作成します。- パラメーター:
annotationType- 検索するアノテーション型
AnnotationMethodMatcher
public AnnotationMethodMatcher(ClassSE<? extends AnnotationSE> annotationType, boolean checkInherited) 指定されたアノテーション型の新しい AnnotationClassFilter を作成します。- パラメーター:
annotationType- 検索するアノテーション型checkInherited- スーパークラスとインターフェース、およびアノテーション型のメタアノテーションもチェックするかどうか (つまり、標準の JavaAccessibleObject.isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>)SE の代わりにAnnotatedElementUtils.hasAnnotation(java.lang.reflect.AnnotatedElement, java.lang.Class<? extends java.lang.annotation.Annotation>)セマンティクスを使用するかどうか)- 導入:
- 5.0
メソッドの詳細
matches
インターフェースからコピーされた説明:MethodMatcher静的チェックを実行して、指定されたメソッドが一致するかどうかを判断します。このメソッドが
falseを返す場合、またはMethodMatcher.isRuntime()がfalseを返す場合、実行時チェックは行われません (つまり、MethodMatcher.matches(Method, Class, Object[])呼び出しは行われません)。- パラメーター:
method- 候補メソッドtargetClass- ターゲットクラス- 戻り値:
- このメソッドが静的に一致するかどうか
equals
hashCode
public int hashCode()toString