次のような結果になる可能性があります。
ServiceChild (class) extends (or only partial implements) Service and overrides sayHello
Service (interface) implements hello,goodbye
Hello (has a mixin HelloMixin) has method sayHello
Goodbye (has a mixin GoodbyeMixin) has method sayGoodbye
ServiceChild の懸念アプローチを使用して上記のことを試しました
public class ServiceChild extends ConcernOf<Service> implements Hello
{
@Override
public String sayHello() {
return "Rulle Pharfar";
}
}
ただし、このアプローチを使用すると、Hello 実装のみが Java によって検出され、Service クラスの残りのものは検出されません。それで、うまくいく他のアプローチはありますか?