Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] not able to hook individual class - proxy aspectj

Hi Ramnivas,

Thanks for your reply.
Can you give me some suggestion or site to refer?

Regards,
Priya


Ramnivas Laddad wrote:
> 
> Priya,
> 
> I assume that by "proxy" you mean proxies created by Spring AOP. In that
> case, Controllertest isn't probably a Spring bean. In Spring, only beans
> may
> be advised by aspects. If you must advise non-beans, you will need to use
> the AspectJ weaver.
> 
> -Ramnivas
> 
> On Sun, Jan 10, 2010 at 6:16 PM, priya j <jagapriya.s@xxxxxxxxx> wrote:
> 
>>
>> Hi All,
>>
>> i am using proxy aspectj for my implementation.
>> When my Pointcut is as follows:
>> @Pointcut("execution(*
>> org.springframework.web.servlet.mvc.Controller.handleRequest(..))")
>> works fine. no problem.
>>
>> When i want to honk an individual class or method eg:
>> @Pointcut("execution(* sg.test.Controllertest.doQuery(..))")
>> No error, but i am not able to honk.
>> Where my package is : sg.test
>> Class is : Controllertest
>> Method is : doQuery
>>
>> I am very new to aspectJ.
>> Kindly help me on this.
>>
>> Regards,
>> Priya
>> --
>> View this message in context:
>> http://old.nabble.com/not-able-to-hook-individual-class---proxy-aspectj-tp27072353p27072353.html
>> Sent from the AspectJ - users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 

-- 
View this message in context: http://old.nabble.com/not-able-to-hook-individual-class---proxy-aspectj-tp27072353p27108145.html
Sent from the AspectJ - users mailing list archive at Nabble.com.



Back to the top