[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Re routing calls

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 
> duvelbier-tsmets@xxxxxxxxx
> 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  :
>                          "findEmployeeByCriteria(Criteria 
> 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,
> 
> \T,
> 
> 
> 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
> aspectj-users@xxxxxxxxxxx 
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 



Disclaimer:
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.