Scala/Play · Part 9
Scala/Play, Part 9: Scala Traits for Java Developers - Contracts and Shared Behavior
A familiar Java interface idea becomes a Scala trait: define a policy repository, implement find, and inherit an exists method that calls the concrete lookup.