1 2 3 4 5 6 7 8 9 10
@ImplementedBy(classOf[Provider]) trait Service { def someMethod() } class Provider extends Service { def someMethod() = () }