Mar 13 2008
Spring AOP with aspectJ and JDK5 annotations
Simple Class to play with
Our simple class called "Person" will be used to explain the different kinds of code advices:
person.java
JAVA:
Implementation
personimpl.java
JAVA:
-
package be.loadit.service.impl;
-
import be.loadit.service.Person;
-
public class PersonImpl implements Person {
-
private int age= 0;
-
public int getAge() {
-
return age;
-
}
-
return name;
-
}
-
this.age = age;
-
this.name = name;
-
}
-
-
public void setAge(int age) {
-
this.age = age;
-
}
-
-
this.name = name;
-
}
-
}
