Interface injection

From JVMLangSummit
Revision as of 10:03, 20 July 2011 by Thobe (talk | contribs) ("The case for Interface Injection")
Jump to navigationJump to search

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
Project (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.

Workshop discussions

... TODO ...