私のアドバイス メソッドはオブジェクト パラメータを受け入れますFoo
が、ポイント カット メソッドもオブジェクト パラメータを受け入れますBar
。
ポイント カット メソッドには、アドバイス メソッドに渡す必要がある Foo オブジェクトの一部である 2 つの変数があります。
どうすればこれを実装できますか? 前もって感謝します。
ポイントカット方法:
aPointCutMethod(Bar bar){
// These two params needed to be used to construct Foo object and pass it to the advice method
String attr1;
String attr2;
}
Foo オブジェクト:
Class Foo {
String attr1;
String attr2;
}
アドバイス方法:
anAdviceMethod(Foo foo);