1.

Which Are The Limitations Of The Two Proxy-types?

Answer»

SPRING will create either JDK or CGLib proxies

JDK Proxy

  • Also called DYNAMIC proxies
  • API is built into the JDK
  • Requirements: Java interface(s)
  • All interfaces proxied

CGLib Proxy

  • NOT built into JDK
  • INCLUDED in Spring jars
  • Used when interface not available
  • Cannot be APPLIED to final classes or method

Spring will create either JDK or CGLib proxies

JDK Proxy

CGLib Proxy



Discussion

No Comment Found