~/talk

Designing for modularity with Java modules

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

Java 9 modules are used to enforce deliberate requires/exports/opens boundaries, with services implemented via the module descriptor and the JDK service loader to decouple front ends from multiple analyzer implementations; dependency injection (Juice example) works but needs open packages or a service-to-DI bridge. The EasyText sample demonstrates adding/removing provider jars without recompiling and loading plugins at runtime by creating separate module layers (new class loaders per layer) — it works and supports multiple versions per layer.

AI-written summary · about

  1. 0:00Intro
  2. 2:15Today's journey
  3. 3:55Designing for Modularity with Java Modules
  4. 5:08A Module Primer
  5. 10:24EasyText example
  6. 13:41Reflection isn't a workaround
  7. 14:30Services to the rescue
  8. 15:20Providing a service
  9. 16:27Implementing a service
  10. 17:06Consuming a service
  11. 19:27Finding the right service
  12. 24:36Goal: Inject Instances using Guice
  13. 25:05Providing a Guice service
  14. 29:07Consuming a Guice service
  15. 30:15Injecting a service
  16. 30:42Downsides of this setup
  17. 31:05Services vs Guice
  18. 31:49Services and Guice
  19. 33:31Naming Modules
  20. 35:36API Modules
  21. 37:24Small Modules vs. All-in-one
  22. 42:41Breaking cycles: abstraction
  23. 44:15Optional dependencies
  24. 50:32ModuleLayer Demo
~/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.