[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [aspectj-users] Re routing calls
- From: "Serge Beaumont" <serge.beaumont@xxxxxxxxx>
- Date: Wed, 13 Apr 2005 12:42:02 +0200
- Delivered-to: firstname.lastname@example.org
- Importance: Normal
- Organization: Sogeti
One trick could be to "attach" the extra objects to an existing parameter
using static introduction. You could add a getUser/setUser pair to your
Criteria class, in this case.
> -----Oorspronkelijk bericht-----
> Van: aspectj-users-bounces@xxxxxxxxxxx
> [mailto:aspectj-users-bounces@xxxxxxxxxxx] Namens
> Verzonden: woensdag 13 april 2005 11:39
> Aan: aspectj-users@xxxxxxxxxxx
> Onderwerp: [aspectj-users] Re routing calls
> I seem to be missing someting in the way I could genralize
> this neatly... We have finder methods like
> "findEmployeeByCriteria(Criteria criteria)" I can find all
> those methods and intercept the calls. What I want is a
> generic way of adding a parameter to the calls. You gessed it :
> criteria, User user)"
> I know how to route one call but I find it hard to make it
> generic whithout using reflexion...
> Any hint is welcome,
> Anyone can write software a computer understands;
> let's write software that people understand.
> K. Beck
> T. : +32 (0)2 742 05 94
> M. : +32 (0)497 44 68 12
> aspectj-users mailing list
This message contains information that may be privileged or confidential and is the property of Sogeti Nederland B.V. or its Group members. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.