You can use wildcarding to make your aspects more general:

before(): execution(* com.foo.SomeRootPackage..*(..))

The ‘..*’ indicates all classes in a package or sub packages. The ‘(..)’ 
indicates you don’t care what the parameters are.

When matching general join points you may want to make use of ‘thisJoinPoint’ 
in your advice which gives you access to what was actually matched (the method 
name, the method parameters, etc). See the docs on thisJoinPoint.

cheers,
Andy


On Oct 12, 2014, at 10:21 PM, mufc_fan <rajeshkumarit8...@gmail.com> wrote:

> Hi Andy
> 
>   Thank you...for your reply...I had one doubt...I want to get the entry
> point of functions(value of parameters passed to that function) in a
> package(contains 10 class files)... while writing aspects I have to mention
> the exact function name and parameters for each function in a class or is
> there any other way to include all the functions and its parameters...
> 
> 
> 
> --
> View this message in context: 
> http://aspectj.2085585.n4.nabble.com/Aspectj-in-weaving-a-jar-file-tp4651584p4651589.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to