-
Notifications
You must be signed in to change notification settings - Fork 0
/
beans.yaml
45 lines (42 loc) · 1010 Bytes
/
beans.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
aspects: !!map
anAspect:
pointcuts:
apointCut:
expression: doBusiness[12]
method: methodInterceptor
type: method
ref: myAspectBean
expression: Service$
anotherAspect:
pointcuts:
anotherpointCut:
expression: \w
method: exceptionInterceptor
type: exception
ref: myAspectBean
expression: Service$
beans: !!map
myAspectBean:
class: AnAspect
someYamlBean:
class: MyService
# The example uses global aspects, they are declared globally.
# But you could also define an aspect inside the bean, like:
#
# someYamlBean:
# class: MyService
# aspects:
# aspectA:
# pointcuts:
# pointcutA:
# method: methodInterceptor
# expression: doBusiness[12]
# type: method
# ref: myAspectBean
# aspectB:
# pointcuts:
# pointcutA:
# method: exceptionInterceptor
# expression: \w
# type: method
# ref: myAspectBean