~/talk

The Proxy fairy and the magic of Spring

Talkat JPoint 2019 · 2019-04-05..04-06· [java, software-architecture]
slides:none on file

Live-coding shows six concrete interception techniques and how they behave in Spring: a cached prime-number demo proves a decorator wired as a Spring bean works; a hand-built interface proxy (java.lang.Proxy) and a class proxy (CGLIB Enhancer) are generated and used successfully; a custom @Log aspect and Spring’s @Cacheable demonstrate ordering, self-invocation bypass, and cache eviction; a BeanPostProcessor returns proxies. Surprising gotchas: final methods are silently not proxied and internal method calls skip aspects unless you call the current proxy.

AI-written summary · about

  1. 0:00Introduction and philosophy
  2. 7:12Dry principle and proxies
  3. 17:29Live coding with Spring caching
  4. 27:23Class proxies with CGlib
  5. 37:50Spring AOP and custom aspects
  6. 51:27Advanced proxy tricks
  7. 58:11Spring Data and proxies
  8. 1:00:40Summary and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.