On Annotations — Time to Stop the Demons
summary
The talk critiques heavy use of Java annotations in Java EE and Spring (e.g., @Inject, @Autowired) that lead to runtime surprises like failed transactions and NullPointerExceptions despite green tests using mocks. It presents functional, Java 8-based alternatives for concerns such as transactions and security that rely on the compiler and real-code tests rather than container behavior, and discusses how to adopt those approaches alongside existing application servers and legacy code.
AI-written summary · about
related talks
49mOn @annotations - liberate yourselves from demons
49mSpring, Jakarta EE, CDI and Other Pathologies
42mRevealing the Magic Behind Java Annotations
49mBreaking the Spring Framework's code: annotation's witchcraft
50mRevealing the magic behind Java annotations
04mpart6 – Adam Bien
01h 10mEnterprise Java on Steroids
01h 22mModern Java Component Design with Spring Framework 4.2
