jason810496 commented on code in PR #69827: URL: https://github.com/apache/airflow/pull/69827#discussion_r3680731035
########## airflow-core/docs/authoring-and-scheduling/language-sdks/java.rst: ########## @@ -205,6 +205,16 @@ Interface-based API Implement the ``Task`` interface directly for full control over how tasks are registered and how XComs are read. +The runner creates a fresh instance of the task class through reflection for every task-instance run, +which puts three constraints on the class. It must be: + +* Concrete: not abstract and not an interface. +* A public no-argument constructor. +* If nested inside another class, it must be ``static`` class. Review Comment: ```suggestion which puts three constraints on the class: * It must be concrete: not abstract and not an interface. * It must declare a public no-argument constructor. * If nested inside another class, it must be a ``static`` nested class. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
