~/talk

Breaking the Spring Framework's code: annotation's witchcraft

Talkat GeeCON 2024 · 2024-05-15..05-17· [java]
links:none on file
slides:none on file

Builds small Spring examples that show how annotations become runtime behavior: a custom ProxyPostProcessor and an InvocationHandler that swallows exceptions until a reflection bug is fixed, an annotation-driven PointcutAdvisor with a MethodInterceptor that uppercases String returns, and a timing interceptor wired via an imported AutoProxyRegistrar. Demonstrates when Spring picks Dynamic proxies vs CGLIB class proxies, how to force proxy-target-class, how advices stack and order, and the real surprise: tests can pass while non-interface beans fail at runtime.

AI-written summary · about

  1. 0:00Introduction to Spring annotations
  2. 3:02What are annotations in Spring
  3. 7:00Dynamic proxies in Spring
  4. 8:05Creating the Expelliarmus spell
  5. 15:24Limitations of annotation magic
  6. 17:11Exploring Spring’s proxy mechanisms
  7. 24:42Aspect-oriented programming basics
  8. 27:54The Engorgio spell demonstration
  9. 36:43Logging execution time with Logus Dingus
  10. 41:21Enabling custom spellcasting
  11. 43:08Combining multiple spells
  12. 44:40Q&A session
~/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.