~/talk

Magic AOP

Talkat JavaDay Kharkiv 2016 · on Saturday, 2016-09-17· [java]
links:none on file
slides:none on file

Explains how Hibernate/JPA magic comes from three concrete techniques: runtime proxies via ProxyFactory (works only when you know which methods to override), bytecode rewriting both statically and at class-load time (claims ~90% of Java bytecode gets altered; static weaving produces modified, signable JARs), and AspectJ-style AOP with annotations, pointcuts and around advice that intercept field access and method execution. Shows code patterns, tradeoffs for startup and runtime cost, and demos the joke Google GAG annotations like BossMadeMeDoIt that replace or null out methods.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Why it's called magic
  3. 2:13Hibernate entity issues
  4. 3:38Java proxies
  5. 5:26ProxyFactory implementation
  6. 7:34ProxyFactory limitations
  7. 8:36Static bytecode weaving
  8. 11:26Spring dynamic weaving
  9. 12:53Static vs dynamic weaving
  10. 13:16Aspect-oriented programming
  11. 15:26Java annotations
  12. 16:30Code separation with aspects
  13. 17:12AspectJ working
  14. 18:37AspectJ basics
  15. 20:02Pointcut and annotations
  16. 21:07AspectJ weaving types
  17. 22:30AspectJ advice annotations
  18. 23:35Advice types: before/after/around
  19. 24:17AspectJ usage example
  20. 25:43Complex pointcut scenarios
  21. 26:24Google Guava aspects
  22. 28:13Guava @Noop example
  23. 29:41Q&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.