Interface Injection is a feature that allows adding interfaces that have been defined as injectable into any target class that does not already implement that interface.
"The case for Interface Injection"
- Tobias Ivarsson
- https://github.com/thobe/mlvm (a patchset for the patchset for OpenJDK)
- The case for Interface Injection
It is time to start laying out the features for Java 8. I would like to propose considering interface injection for that feature set. Interface injection is the ability to inject an interface defined as injectable into any class in the JVM. In this talk I will outline the current status of the specification and implementation of interface injection. I will go through the various areas where interface injection is applicable, such as low overhead adapters, traits, and dynamic types. And I will discuss how interface injection relates to other features, such as defender methods and invoke dynamic.
... TODO ...