On Fri, Apr 15, 2011 at 2:16 PM, Bertrand Delacretaz <[email protected]> wrote: > Maybe later...the simplest might be be an additional return value for > canEnhance(...): the reason why that method returns no, "system is > offline" in this case, or a specific return value.
In my opinion canEnhance(...) can not be used, because the state can change between the calls to canEnhance(...) and computeEnhancements(...) - especially if the Enhancements are calculated. This is also the reason, why I do not check for offlineMode in canEnhance(...). However we could use an Integer that indicates the state as return value to computeEnhancements(...). An other possibility would be that Engines add informations about the states to the Enhancement Results. Based on the feedback I will mark STANBOL-162 as resloved best Rupert -- | Rupert Westenthaler [email protected] | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen
