クラス AspectMetadata

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

public class AspectMetadata extends ObjectSE implements SerializableSE
AspectJ アスペクトクラスのメタデータ。句ごとに Spring AOP ポイントカットが追加されています。

AspectJ 5 AJType リフレクション API を使用して、"singleton"、"pertarget"、"perthis" などのさまざまな AspectJ インスタンス化モデルを操作できるようにします。

導入:
2.0
作成者:
Rod Johnson, Juergen Hoeller
関連事項:
  • コンストラクターのサマリー

    コンストラクター
    コンストラクター
    説明
    AspectMetadata(ClassSE<?> aspectClass, StringSE aspectName)
    指定されたアスペクトクラスの新しい AspectMetadata インスタンスを作成します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    AspectJ リフレクション情報を返します。
    アスペクトクラスを返します。
    アスペクト名を返します。
    シングルトンアスペクトの Spring ポイントカット式を返します。
    boolean
    アスペクトを遅延してインスタンス化する必要があるかどうかを返します。
    boolean
    アスペクトが "perthis" または "pertarget" として定義されているかどうかを返します。
    boolean
    アスペクトが "pertypewithin" として定義されているかどうかを返します。

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • AspectMetadata

      public AspectMetadata(ClassSE<?> aspectClass, StringSE aspectName)
      指定されたアスペクトクラスの新しい AspectMetadata インスタンスを作成します。
      パラメーター:
      aspectClass - アスペクトクラス
      aspectName - アスペクトの名前
  • メソッドの詳細

    • getAjType

      public AjType<?> getAjType()
      AspectJ リフレクション情報を返します。
    • getAspectClass

      public ClassSE<?> getAspectClass()
      アスペクトクラスを返します。
    • getAspectName

      public StringSE getAspectName()
      アスペクト名を返します。
    • getPerClausePointcut

      public Pointcut getPerClausePointcut()
      シングルトンアスペクトの Spring ポイントカット式を返します。(シングルトンの場合は Pointcut.TRUE など)。
    • isPerThisOrPerTarget

      public boolean isPerThisOrPerTarget()
      アスペクトが "perthis" または "pertarget" として定義されているかどうかを返します。
    • isPerTypeWithin

      public boolean isPerTypeWithin()
      アスペクトが "pertypewithin" として定義されているかどうかを返します。
    • isLazilyInstantiated

      public boolean isLazilyInstantiated()
      アスペクトを遅延してインスタンス化する必要があるかどうかを返します。