Для чего используются модификаторы доступа в выражении Spring AOP?

. Из документа Spring:

6.2.3.4. Examples

Spring AOP users are likely to use the execution pointcut designator the most often. The format of an execution expression is:

execution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern) throws-pattern?)

Я вижу шаблон модификаторов -? где можно сказать публичный, частный, защищенный. И в том же документе написано:

6.2.3.1. Supported Pointcut Designators

Due to the proxy-based nature of Spring's AOP framework, protected methods are by definition not intercepted, neither for JDK proxies (where this isn't applicable) nor for CGLIB proxies (where this is technically possible but not recommendable for AOP purposes). As a consequence, any given pointcut will be matched against public methods only!

Я немного запутался, какой смысл использовать шаблон модификаторов -?, пожалуйста, приведите пример?

5
задан Nandkumar Tekale 6 August 2012 в 06:16
поделиться