You can use a "get()" pointcut with either a "before" or "around" advise.
On Fri, Feb 18, 2011 at 5:33 AM, shahzar shamsi <shahzar.sha...@gmail.com>wrote: > Hi, > > I m struck with Aspect J. I m new in this and i want to check Non Null for > different pojo classes. > My requirement is to check not-null for some field in different classes > > for example: > > public class student{ > > private String a; > private String b; > } > > > > public class teacher{ > > private String c; > private String d; > } > > In these classes fields a and d should not be null. > > How to implement this with AspectsJ > > Thanks in advance. P;ease provide me solution of this. > > > > > > > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > -- Ramin
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users