2014-05-13 17:53 GMT+02:00 Thomas Mortagne <[email protected]>:
The ExecutionContext returned by execution.getContext(); comes from a ThreadLocal which means it's not a singleton associated to the main wiki but a new ExecutionContext generated for each http request.
That is what I understood, but that means that for my component to operate on correct wiki (in correct context), it should reassign his own "context" member for each request - and not do it once at component initialization time.
By the way you should really use Provider<XWikiContext> component instead.
I will, thanks. Does it have a different/better behaviour or is just the preferred way ?
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users