Open kuna opened 9 years ago
ServiceConfiguration
, although you should be using it AFTER an Evaluator is allocated (if there is no Evaluator to work with, then obviously there is no place to inject a Service).failed task
; not failed context, or failed evaluator. Is there anything a failed Task
refers to other than a Task that failed?
I think you prefer using 'FailedTask', but there's no way to access to get service from context/task as far as I learn. also not found in documentation. is there any way to do, or am I thinking something wrong?
There is a way to access Services from a Context or Task, and I'm quite sure I talked about it during last practice session (I explained about using the PrimeParameter or RandomGenerator class in the constructor of a Task). A small hint: not all Handlers must go in to the same Driver java class.
I mean, getting service from 'FailedTask'. and I think we haven't learnt how to get service from context.
There is no direct way to access a Service class from a FailedTask
instance. Although this feature may be added in the future, Services are intended to be used by Tasks or other Services that are running (not failed) and thus it is rather awkward to access a Service using a FailedTask
instance. Try to think of other solutions.
I got it. thank you for replying.
Thank you.