java - JavaFX2: How to retrieve Task in Service's onFailed event? -


i have javafx service , try handle task failure. reference task instance in handle method of onfailed handler. in debug can see workerstateevent source holds task reference, cannot find way other reflection avoid.

am missing in here?

i ended having subclass of service class property (this needed, logging purposes).

it job, i'm not marking proper solution because don't it. perhaps has better idea.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -