Java APIs - the Missing Manual
summary
Shows concrete Java SE techniques: how to register implementations via META-INF/services and load them with ServiceLoader (noting implementations need no-arg constructors and Java 9 modules can use provides/uses), how to design custom annotations and annotation processors (use @Target and @Retention(RetentionPolicy.RUNTIME), read values with reflection, and generate files at compile time), and practical patterns for handling exceptions in streams (wrap results in success/failure objects or use libraries like Vavr so one bad element doesn’t break the pipeline).
AI-written summary · about
chapters (4)
- 0:00Introduction
- 5:03Service Provider Interface explained
- 26:54Custom annotations
- 54:28Java Streams error handling
related talks
27mModern Java API Design
51mThe Java 9 Module System Beyond The Basics
54mEffective JavaSE9 to 15APIs/Lang features, makes your life easier.
41mJava Made (Somewhat) Simple
44mMastering Resilient Java API Design: From Principles to Practice
51mLet's make a contract: the art of designing a Java API
49mLet's make a contract: the art of designing a Java API
49mThe Good, the Bad and the Ugly of Java API design
