|
50 | 50 |
|
51 | 51 | /**
|
52 | 52 | * {@link org.springframework.beans.factory.FactoryBean} implementation that builds an
|
53 |
| - * AOP proxy based on beans in Spring {@link org.springframework.beans.factory.BeanFactory}. |
| 53 | + * AOP proxy based on beans in a Spring {@link org.springframework.beans.factory.BeanFactory}. |
54 | 54 | *
|
55 | 55 | * <p>{@link org.aopalliance.intercept.MethodInterceptor MethodInterceptors} and
|
56 | 56 | * {@link org.springframework.aop.Advisor Advisors} are identified by a list of bean
|
|
60 | 60 | * to use the "targetName"/"target"/"targetSource" properties instead.
|
61 | 61 | *
|
62 | 62 | * <p>Global interceptors and advisors can be added at the factory level. The specified
|
63 |
| - * ones are expanded in an interceptor list where a "xxx*" entry is included in the |
64 |
| - * list, matching the given prefix with the bean names (e.g. "global*" would match |
65 |
| - * both "globalBean1" and "globalBean2", "*" all defined interceptors). The matching |
66 |
| - * interceptors get applied according to their returned order value, if they implement |
67 |
| - * the {@link org.springframework.core.Ordered} interface. |
| 63 | + * ones are expanded in an interceptor list where an "xxx*" entry is included in the |
| 64 | + * list, matching the given prefix with the bean names — for example, "global*" |
| 65 | + * would match both "globalBean1" and "globalBean2"; whereas, "*" would match all |
| 66 | + * defined interceptors. The matching interceptors get applied according to their |
| 67 | + * returned order value, if they implement the {@link org.springframework.core.Ordered} |
| 68 | + * interface. |
68 | 69 | *
|
69 | 70 | * <p>Creates a JDK proxy when proxy interfaces are given, and a CGLIB proxy for the
|
70 | 71 | * actual target class if not. Note that the latter will only work if the target class
|
|
75 | 76 | * This won't work for existing prototype references, which are independent. However,
|
76 | 77 | * it will work for prototypes subsequently obtained from the factory. Changes to
|
77 | 78 | * interception will work immediately on singletons (including existing references).
|
78 |
| - * However, to change interfaces or target it's necessary to obtain a new instance |
| 79 | + * However, to change interfaces or a target it's necessary to obtain a new instance |
79 | 80 | * from the factory. This means that singleton instances obtained from the factory
|
80 | 81 | * do not have the same object identity. However, they do have the same interceptors
|
81 | 82 | * and target, and changing any reference will change all objects.
|
|
0 commit comments