Closure above is 3 times slower than Noop closure. Injections should be optimized.
I see the following options:
- Introduce SpringAware annotation and annotate each object that will need injection including SPI and internal stuff
- Support Spring Autowire annotation.
- I am not sure about the approach. We can use ApplicationContext.autowire() or generate and compile code that will do injections.
- Spring ApplicationContext aware
Implementor should suggest and back solution with microbenchmarks.