Results 1 to 2 of 2

Thread: dao without interface

  1. #1
    Join Date
    May 2007
    Location
    Rome
    Posts
    67

    Default dao without interface

    We are using dao's without an interface. They are annotated with @Transactional

    Will Spring use CGILIB in order to make this work?

    Reason for asking is this: I would like to add Spring AOP aspects to my Dao's. It is written in the ref docs that for classes without interfaces, Spring needs to use CGILIB. But we use already @Transactional on the Dao's, and they don't have interfaces? We never have configured Tomcat for instance with a LaodTimeWeaver.

    We are using java 6 and Tomcat 6.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    CGLib has nothing to do with loadtimeweaving. CGLib is another proxy creating framework which creates class based proxies as opposed to JDK Proxies which create dynamic proxies based on interfaces.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

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