~/talk

Refactoring your code to Java 9 modules

Talkat JPoint 2018 · 2018-04-06..04-07· [java]
slides:none on file

Claims Java 9 modules enforce real boundaries so public classes can be hidden and architecture becomes visible; analysis uses Detangler and DeGraph to find cycles in a 150,000‑line codebase (40k classes, ~3,800 packages, ~285 modules) and drives refactoring. The demo splits a JavaFX vet app into model/UI/pet/glue modules, replaces direct calls with the service loader SPI to plug a pet or car module, fixes reflective access via opens, and produces a working modular app and a ~45MB runtime image with jlink.

AI-written summary · about

  1. 0:00Introduction
  2. 1:59From monolith to modules
  3. 8:03Sample application demo
  4. 12:16Identifying module candidates
  5. 15:44Refactoring packages by layers
  6. 17:50Java 9 module basics
  7. 21:17Designing new module structure
  8. 23:02Creating first module
  9. 27:42Preparing UI module
  10. 28:48Building pet module
  11. 30:56Fixing reflection issues
  12. 31:59Resolving cyclic dependencies
  13. 33:47Implementing service loader
  14. 37:52Finalizing pet module
  15. 40:22Replacing pet with car
  16. 43:53Running dual applications
  17. 47:28Compiling and packaging modules
  18. 48:52Creating runtime image
  19. 50:39Summary and benefits
  20. 55:34Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.