[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] help

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.shamsi@xxxxxxxxx> wrote:

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