[otj-users] Develop Teams independent of base classes

Michael Pradel michael at binaervarianz.de
Fri Jan 18 18:07:35 CET 2008


> You may, however, implement teams and roles completely _omitting_
> any bindings, and later extend the (perhaps abstract) team using 
> team inheritance in order to add those bindings.

Ah, okay! That's nice...

Have you ever thought about passing the playing base class as type
parameter when instantiating a team? E.g. like the following:

public team class MyTeam <T> {
  protected class MyRole playedBy T { .. }
  ..
}

MyTeam t = new MyTeam<BaseClass>()


Do you consider it to be feasible on OT/J?


Michael


More information about the otj-users mailing list