I want to combine two libraries, one requires me to extend an abstract class with methods a_1 a_2 ... a_n, b_1, b_2 ... b_m, and the other one provides two objects A and B that respectively implement methods a_i and b_i. Is there an elegant way to combine A and B? Here is what I'm currently doing:
class myClass extends abstractClass {
def a_1 = A.a_1
def a_2 = A.a_2
...
def b_1 = B.b_1
def b_2 = B.b_2
...
}