ProxyFactoryBean does not use proxyInterfaces, why JDKProxy is used?
Hello All,
I disable proxyInterfaces. according to document then ProxyFactoryBean
should use CGLIB proxy instead of JDK Proxy.
but why JDK proxy is used in runtime? see screenshot (I used debugger to stop it and take screenshot)
Could anyone give me some hints for this question?
Below is my configure file. (see proxyInterfaces is not used)
<!-- acegi method access control based on Roles -->
<bean id="serviceSecurityAndTransactionProxy"
class="org.springframework.aop.framework.ProxyFact oryBean" lazy-init="true" abstract="true">
<!-- property name="proxyInterfaces">
<value>com.waning.service.spring.GenericService</value>
</property-->
<property name="target">
<ref local="genericService"/>
</property>
<property name="interceptorNames">
<list>
<value>serviceMethodSecurityInterceptor</value>
<value>transactionInterceptor</value>
</list>
</property>
</bean>
Last edited by stewchicken; May 9th, 2008 at 03:59 PM.