[otj-users] Callin methods
Michael Pradel
michael at binaervarianz.de
Mon Feb 4 09:00:36 CET 2008
>> Just another question... Is it possible to call role methods from a base
>> > class (i.e. callin methods) without a corresponding method in the base
>> > class, i.e., without using <- ?
>
> what would then be the trigger for the role method call? Would you like to
> call it explicitly, like a regular method or do you think of some kind of
> pointcut other than method execution?
Yes, I'd like to call a role method directly. Shouldn't that be possible
whenever the context (i.e. the team instance) is given, e.g.
MyTeam t = new MyTeam();
within(t) {
baseObject.roleMethod();
}
I assume that there is a role type having a method m that is a played by
the class of baseObject.
Michael
More information about the otj-users
mailing list