blob: 7ea1e8d24515d2b26f3cb9e71d0c6cab37bacd07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
aspect DeclareAnnotation {
declare @method : * debit(..) : @Secured(role="supervisor");
}
class BankAccount {
public void debit(String accId,long amount) {
}
}
@interface Secured {
String role();
}
|