X Tutup
Skip to content

Commit 975dcd7

Browse files
committed
fixed inaccuracies (SPR-6723, SPR-6725)
1 parent 0a6f234 commit 975dcd7

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

spring-framework-reference/src/aop-api.xml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -904,16 +904,6 @@ public interface IntroductionInfo {
904904
<literal>true</literal>, the target can use the
905905
<methodname>AopContext.currentProxy()</methodname> method.</para>
906906
</listitem>
907-
908-
<listitem>
909-
<para><literal>aopProxyFactory</literal>: the implementation of
910-
<interfacename>AopProxyFactory</interfacename> to use. Offers a way
911-
of customizing whether to use dynamic proxies, CGLIB or any other
912-
proxy strategy. The default implementation will choose dynamic
913-
proxies or CGLIB appropriately. There should be no need to use this
914-
property; it is intended to allow the addition of new proxy types in
915-
Spring 1.1.</para>
916-
</listitem>
917907
</itemizedlist>
918908

919909
<para>Other properties specific to
@@ -1293,7 +1283,7 @@ public interface IntroductionInfo {
12931283
target object will automatically be proxied:</para>
12941284

12951285
<para><programlisting language="java">ProxyFactory factory = new ProxyFactory(myBusinessInterfaceImpl);
1296-
factory.addInterceptor(myMethodInterceptor);
1286+
factory.addAdvice(myMethodInterceptor);
12971287
factory.addAdvisor(myAdvisor);
12981288
MyBusinessInterface tb = (MyBusinessInterface) factory.getProxy();</programlisting></para>
12991289

@@ -1302,10 +1292,10 @@ MyBusinessInterface tb = (MyBusinessInterface) factory.getProxy();</programlisti
13021292
create this with a target object, as in the above example, or specify the
13031293
interfaces to be proxied in an alternate constructor.</para>
13041294

1305-
<para>You can add interceptors or advisors, and manipulate them for the
1306-
life of the ProxyFactory. If you add an
1307-
IntroductionInterceptionAroundAdvisor you can cause the proxy to implement
1308-
additional interfaces.</para>
1295+
<para>You can add advices (with interceptors as a specialized kind of advice)
1296+
and/or advisors, and manipulate them for the life of the ProxyFactory.
1297+
If you add an IntroductionInterceptionAroundAdvisor, you can cause the proxy
1298+
to implement additional interfaces.</para>
13091299

13101300
<para>There are also convenience methods on ProxyFactory (inherited from
13111301
<classname>AdvisedSupport</classname>) which allow you to add other advice

0 commit comments

Comments
 (0)
X Tutup