Section type
execution format
Wildcard
Example
1. execution: execute by using the "execution (method expression)" matching method;
second, within: use "within" to match the method execution within the specified type;
3. this: use "this (fully qualified name of type)" to match the execution method of the current AOP proxy object type; Pay attention to the type matching of AOP proxy objects, which may include introducing interface methods and matching; Note that the expression used in this must be a fully qualified name of the type, and wildcards are not supported;
iv. target: the execution method of matching the current target object type with "target (fully qualified name of type)"; Pay attention to the type matching of the target object, so it does not include the introduction of interfaces but also type matching; Note that the expression used in target must be a fully qualified name of type, and wildcards are not supported;
v. args: use "args (parameter type list)" to match the parameters passed in by the currently executed method to the execution method of the specified type; Note that it matches the parameter type passed in, not the parameter type that matches the signature of the method; Parameters in the parameter type list must be fully qualified names of types, and wildcards are not supported; Args is a dynamic entry point, which is very expensive and should not be used unless it is special.
6. @within: use "@within" to match the methods within the specified annotation type; The annotation type must also be a fully qualified type name;
7. @target: use "@target" to match the execution method of the current target object type, where the target object holds the specified annotation; The annotation type must also be a fully qualified type name;
8. @args: use "@args (comment list)" to match the parameters passed in by the currently executed method to hold the execution of the specified comment; The annotation type must also be a fully qualified type name;
9. @annotation: use "@annotation" to match the method with the specified annotation for the currently executed method; The annotation type must also be a fully qualified type name;
X. Bean: the execution method of matching bean objects with specific names with bean (Bean id or name wildcard "; Spring AOP extension, there is no corresponding concept in AspectJ;