Below are some examples of common entry point expressions.
-
Execution of any public method:
Execution (Public **(..))
-
Execution of any method starting with "set:
Execution (* Set *(..))
-
AccountserviceExecution of any method of the interface:
Execution (* COM. XYZ. Service. accountservice .*(..))
-
Define the execution of any method in the service package:
Execution (* COM. XYZ. Service .*.*(..))
-
Define the execution of any method in the service package or sub-package:
Execution (* COM. XYZ. Service ..*.*(..))
-
Any connection points in the service package (only method execution in Spring AOP ):
Within (COM. XYZ. Service .*)
-
Any connection points in the service package or sub-package (only method execution in Spring AOP ):
Within (COM. XYZ. Service ..*)
-
ImplementedAccountserviceAny connection point of the proxy object of the interface (only method execution in Spring AOP ):
This (COM. XYZ. Service. accountservice)
'It' is used in binding form more:-see the section on how to enable proxy objects to be accessed in the notification body in the following sections.
-
ImplementedAccountserviceAny connection point of the target object of the interface (only method execution in Spring AOP ):
Target (COM. XYZ. Service. accountservice)
'Target' is used in binding form:-see the following section on how to make the target object accessible in the notification body.
-
Each parameter accepts only one parameter and is passed in at runtime.SerializableInterface connection point (only method execution in Spring AOP)
ARGs (Java. Io. serializable)
'Args 'is used in binding form:-see the following section for details about how to make method parameters accessible in the notification body.
Note that the starting point in the example is different fromExecution (** (Java. Io. serializable )): ARGs matches the input parameter serializable only during dynamic running, while execution implements the signature declaration type of the input parameter.SerializableInterface.
-
There is@ TransactionalArbitrary connection points in the annotation target object (in Spring AOP, only method execution is performed)
@ Target (Org. springframework. transaction. annotation. Transactional)
'@ Target' can also be used in binding form: see the section in the notice section about how to make annotation objects accessible in the notification body below.
-
The declared type of any target object has one@ TransactionalAnnotation connection point (only method execution in Spring AOP)
@ Within (Org. springframework. transaction. annotation. Transactional)
'@ Within' can also be used in binding form:-see the following sections for details about how to enable annotation objects to be accessed in the notification body.
-
Any method for execution has one@ TransactionalAnnotation connection point (only method execution in Spring AOP)
@ Annotation (Org. springframework. transaction. annotation. Transactional)
'@ Annotation' can also be used in binding form:-see the following sections for details about how to enable an annotation object to be accessed in the notification body.
-
Any one accepts a parameter, in addition, the input parameter type implements the connection point of @ classified annotation (in Spring AOP, only method execution is performed)
@ ARGs (COM. XYZ. security. classified)
'@ ARGs' can also be used in binding form: -The following section describes how to enable an annotation object to be accessed in the notification body.