Using Bean name

From Spring 2.5 onwards, all versions support the use of the bean name to be used in an expression to match the join point. We can use the following syntax:

bean(name_of_bean) 

Consider the following example:

bean(*Component): This is the expression that specifies the join points to be matched, which belong to the bean whose name ends with Component. The expression can't be used with AspectJ annotations.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.158.148