public interface ITaskClosureGenerator
| Modifier and Type | Method and Description |
|---|---|
TaskMethodClosure |
getClosure()
Provides a closure for invoking task method calls.
|
TaskMethodClosure getClosure()
TaskMethodClosure subclass. This method will always be
called for root tasks (i.e. those that can start immediately without
waiting on other tasks), and will be called for all (root and non-root)
tasks unless
TaskMethodClosure.getClosure() is
overridden and returns a non-null result, in which case that will apply
to non-root tasks. In other words, simply overriding this method is
sufficient for many cases, but if/when it is desired to distinguish
between root and non-root tasks, the TaskMethodClosure override may be
useful.
Note that there is no guarantee that the TaskMethodClosure
returned will be invoked; overriding subclasses should simply return an
instance of the desired type.
Copyright © 2018. All rights reserved.