Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定のインターフェイスまたは抽象クラスを拡張または実装するすべてのクラスの特定のメソッドについてアドバイスしたいと思います。spring aop 2.5 を使用してこれをどのように達成できますか。
ポイントカット式を使用する:
within(some.package.MyInterface+)
プラス ( +) は、「このクラス/インターフェースおよびすべてのサブクラス/実装者」を意味します。
+
AspectJ サブタイプ パターン。