~/talk

Groovy MOPping

Talkat JavaDay 2013 · on Saturday, 2013-10-19· [java]
links:none on file
slides:none on file

Groovy MOP techniques show how to synthesize methods at runtime, intercept calls with invokeMethod and methodMissing, and inject behavior into existing classes (even java.lang.Long) using ExpandoMetaClass and categories; examples include a transactional AST transformer that wraps methods and a Grape-backed script that pulls jars at runtime. Code uses ExpandoMetaClass, AST transformations, and Spock tests to prove behavior; static type checking (Groovy 2.0 @TypeChecked) is optional. Example tests mostly pass and demonstrate real runtime changes and compiled transforms.

AI-written summary · about

  1. 0:00Introduction
  2. 13:55What is MOP in Groovy
  3. 29:15Missing methods and synthesis
  4. 35:17ST transformations in Groovy
  5. 48:36Groovy MOP in real tasks
  6. 50:44Conclusion 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.