Hi: Anyone would like to add his/her two cents on the subject? or no one is really interested. When you get no replies there are two possibilities
1- Either what you say is way off [basically is stupid] 2- Or you have very good point there but it is pushed under the rug for the time being for some [political] reason I hope it is not the first case! ---------------------------------------- > From: [email protected] > To: [email protected] > Subject: Enhancement to Wink Rest life cycle > Date: Sun, 26 Jun 2011 21:44:29 +0000 > > > Hello: > > It would be very nice if Wink can support Aspectj AOPs ,much like Spring > framework, out of the box where you can weave advices at runtime for cross > cutting concerns. > > Currently, I believe the only way to do this is through writing customized > user handlers but the logic would apply across the board to all resources. > The granularity of applying some cross concern logic to specific resources > or/and resource methods are not there. > > It is a common use case where you want to make sure that for certain > resources a user has ,say, some role in database while for others you do not > care. Copying the same code all over those resources and resource methods is > cumbersome. Ideally, even a call back methods annotated with @PostCreate , > much like EJB3 call backs, where some logic is called right before a resource > method is invoked would go a long way as well. > > However, the AOP support out of the box would eliminated most of issues with > @Before, @Around and @After AOP features. >
