クラス AnnotationMatchingPointcut

java.lang.ObjectSE
org.springframework.aop.support.annotation.AnnotationMatchingPointcut
実装されたすべてのインターフェース:
Pointcut

public class AnnotationMatchingPointcut extends ObjectSE implements Pointcut
クラスまたはメソッドに存在する特定のアノテーションを検索する単純な Pointcut
導入:
2.0
作成者:
Juergen Hoeller, Sam Brannen
関連事項:
  • コンストラクターの詳細

    • AnnotationMatchingPointcut

      public AnnotationMatchingPointcut(ClassSE<? extends AnnotationSE> classAnnotationType)
      指定されたアノテーション型の新しい AnnotationMatchingPointcut を作成します。
      パラメーター:
      classAnnotationType - クラスレベルで検索するアノテーション型
    • AnnotationMatchingPointcut

      public AnnotationMatchingPointcut(ClassSE<? extends AnnotationSE> classAnnotationType, boolean checkInherited)
      指定されたアノテーション型の新しい AnnotationMatchingPointcut を作成します。
      パラメーター:
      classAnnotationType - クラスレベルで検索するアノテーション型
      checkInherited - スーパークラスとインターフェース、およびアノテーション型のメタアノテーションもチェックするかどうか
      関連事項:
    • AnnotationMatchingPointcut

      public AnnotationMatchingPointcut(@Nullable ClassSE<? extends AnnotationSE> classAnnotationType, @Nullable ClassSE<? extends AnnotationSE> methodAnnotationType)
      指定されたアノテーション型の新しい AnnotationMatchingPointcut を作成します。
      パラメーター:
      classAnnotationType - クラスレベルで検索するアノテーション型 (null にすることができます)
      methodAnnotationType - メソッドレベルで検索するアノテーション型 (null にすることができます)
    • AnnotationMatchingPointcut

      public AnnotationMatchingPointcut(@Nullable ClassSE<? extends AnnotationSE> classAnnotationType, @Nullable ClassSE<? extends AnnotationSE> methodAnnotationType, boolean checkInherited)
      指定されたアノテーション型の新しい AnnotationMatchingPointcut を作成します。
      パラメーター:
      classAnnotationType - クラスレベルで検索するアノテーション型 (null にすることができます)
      methodAnnotationType - メソッドレベルで検索するアノテーション型 (null にすることができます)
      checkInherited - スーパークラスとインターフェース、およびアノテーション型のメタアノテーションもチェックするかどうか
      導入:
      5.0
      関連事項:
  • メソッドの詳細

    • getClassFilter

      public ClassFilter getClassFilter()
      インターフェースからコピーされた説明: Pointcut
      このポイントカットの ClassFilter を返します。
      次で指定:
      インターフェース PointcutgetClassFilter 
      戻り値:
      ClassFilter (非 null)
    • getMethodMatcher

      public MethodMatcher getMethodMatcher()
      インターフェースからコピーされた説明: Pointcut
      このポイントカットの MethodMatcher を返します。
      次で指定:
      インターフェース PointcutgetMethodMatcher 
      戻り値:
      MethodMatcher (非 null)
    • equals

      public boolean equals(@Nullable ObjectSE other)
      オーバーライド:
      クラス ObjectSEequalsSE 
    • hashCode

      public int hashCode()
      オーバーライド:
      クラス ObjectSEhashCode 
    • toString

      public StringSE toString()
      オーバーライド:
      クラス ObjectSEtoString 
    • forClassAnnotation

      public static AnnotationMatchingPointcut forClassAnnotation(ClassSE<? extends AnnotationSE> annotationType)
      クラスレベルで指定されたアノテーションと一致する AnnotationMatchingPointcut のファクトリメソッド。
      パラメーター:
      annotationType - クラスレベルで検索するアノテーション型
      戻り値:
      対応する AnnotationMatchingPointcut
    • forMethodAnnotation

      public static AnnotationMatchingPointcut forMethodAnnotation(ClassSE<? extends AnnotationSE> annotationType)
      メソッドレベルで指定されたアノテーションに一致する AnnotationMatchingPointcut のファクトリメソッド。
      パラメーター:
      annotationType - メソッドレベルで検索するアノテーション型
      戻り値:
      対応する AnnotationMatchingPointcut