flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ufuk Celebi <...@apache.org>
Subject Re: inheritance of Program interface in Program.java in org.apache.flink.api.common
Date Fri, 20 May 2016 10:30:01 GMT
On Thu, May 19, 2016 at 4:46 PM, 윤형덕 <ynoohe1@naver.com> wrote:
>
> how can this.mainClass that doesn't override getPlan method that is
abstract method of Program interface(program.class) and has only static
main method be instantiate as Program?


This is only called if the class is actually a subclass of Program. That's
why there is the `isAssignable` check. Otherwise, we check that there is a
mainMethod (else if (hasMainMethod(mainClass)). If this is not the case, a
ProgramInvocationException is thrown.

Mime
View raw message