[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Regarding queuing methods using AspectJ
|
Please ignore my earlier e-mail. I figured out how to implement this
using synchronize()!
Thanks again for all your help.
Sarthak
On 4/18/07, Sarthak Grover <sarthak.grover@xxxxxxxxx> wrote:
Thanks everyone for your response!
I think Matthew's approach of wait() and notify() would solve my
purpose here since I am not very familiar with annotations and am
dealing with a simple environment
I couldn't find a lot of information in the usage but I am guessing
this is how I should be approaching it now:
around(): capturedMethod()
{
Object myObj = thisJoinPoint.getThis();
arrayList.add(myObj);
myObj.wait();
}
around(): execution(triggerMethod)
{
Iterate through ArrayList
for each Object in ArrayList
myObject.notify();
}
Is it as simple as this? I read that there is a need to have a
'synchronize()' method but I wasn't very clear on that either, if it
would be required in this case or not?
Thanks!
Sarthak