I'm bit confused with MethodLookup. I could be just missing something,
but here it goes...
I wonder if it would be better if the startWith method is:
Continuation startWith( Runnable target, ContinuationContext context )
... instead of:
Continuation startWith( String methodName, ContinuationContext context )
... where the semantics is that the execution starts by invoking the
run() method of the target object.
I think developers relates to Runnable more easily, as java.lang.Thread
uses it. I also think there isn't any loss in the expressiveness of the
library, as we can emulate the old functionality by using a Runnable
that looks up a method name from String and create a new instance.
This approach allows me to fill in the Runnable object by application
specific information. This is analogous to how one would pass
information to a newly launched java.lang.Thread.
I think reducing the developer-visible surface of javaflow by exploiting
the core JDK libraries makes javaflow easier to use.
It also has some other minor benefits, like simplifying the
implementation and improving the performance by avoiding reflection.
--
Kohsuke Kawaguchi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]