クラス AspectMetadata
java.lang.ObjectSE
org.springframework.aop.aspectj.annotation.AspectMetadata
- 実装されたすべてのインターフェース:
SerializableSE
AspectJ アスペクトクラスのメタデータ。句ごとに Spring AOP ポイントカットが追加されています。
AspectJ 5 AJType リフレクション API を使用して、"singleton"、"pertarget"、"perthis" などのさまざまな AspectJ インスタンス化モデルを操作できるようにします。
- 導入:
- 2.0
- 作成者:
- Rod Johnson, Juergen Hoeller
- 関連事項:
コンストラクターのサマリー
コンストラクターコンストラクター説明AspectMetadata
(ClassSE<?> aspectClass, StringSE aspectName) 指定されたアスペクトクラスの新しい AspectMetadata インスタンスを作成します。方法の概要
コンストラクターの詳細
AspectMetadata
指定されたアスペクトクラスの新しい AspectMetadata インスタンスを作成します。- パラメーター:
aspectClass
- アスペクトクラスaspectName
- アスペクトの名前
メソッドの詳細
getAjType
AspectJ リフレクション情報を返します。getAspectClass
アスペクトクラスを返します。getAspectName
アスペクト名を返します。getPerClausePointcut
シングルトンアスペクトの Spring ポイントカット式を返します。(たとえば、シングルトンの場合はPointcut.TRUE
)。isPerThisOrPerTarget
public boolean isPerThisOrPerTarget()アスペクトが "perthis" または "pertarget" として定義されているかどうかを返します。isPerTypeWithin
public boolean isPerTypeWithin()アスペクトが "pertypewithin" として定義されているかどうかを返します。isLazilyInstantiated
public boolean isLazilyInstantiated()アスペクトを遅延してインスタンス化する必要があるかどうかを返します。