Results 1 to 1 of 1

Thread: ProxyFactoryBean does not use proxyInterfaces, why JDKProxy is used?

  1. #1
    Join Date
    Aug 2005
    Posts
    14

    Default 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>
    Attached Images Attached Images
    Last edited by stewchicken; May 9th, 2008 at 03:59 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •