play-java-dagger2-example
play-java-dagger2-example copied to clipboard
Actions like @AddCSRFToken are not properly setup
Issue Description
Add @AddCSRFToken annotation to any get action will result in a NPE in MappedJavaHandlerComponents.
The root cause is BuiltInComponentsFromContext doesn't set up actions properly when creates javaHandlerComponents
It could be fixed by overriding _javaHandlerComponents value inside child class of BuiltInComponentsFromContext. However ideally BuiltInComponentsFromContext should do this work and expose methods for custom Actions and BodyParsers.