クラス 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

      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()
      アスペクトを遅延してインスタンス化する必要があるかどうかを返します。