[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] [ot] Eclipse AspectJ code snippet
|
Hi!
Firstly, I would like to excuse myself for posting the question here, but I am not aware of any
other place where I can do it. Please feel free to point me to the correct direction.
Now, my question is about the code snippet at page 293 :
[quote]
The following pointcut and advice ensure that any time we try to insert or update a domain object
that requires validation, we first validate the object to make sure it satisfies the business
constraints:
pointcut insertOrUpdate(RequiresValidation domainObject) :
(execution(* SimpleInsurance.insert*(..)) ||
execution(* SimpleInsurance.update*(..)))
&& args(domainObject);
[/quote]
Wouldn't this be instead:
[code]
pointcut insertOrUpdate(RequiresValidation domainObject) :
(execution(* SimpleInsurance.insert*(..)) ||
execution(* SimpleInsurance.update*(..)))
&& this(domainObject); // <<< this instead of args
[/code]
thanks for understanding,
./alex
--
.w( the_mindstorm )p.