Sep 11th, 2008, 02:14 AM
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.
Sep 11th, 2008, 04:21 AM
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.