java.lang.ThreadLocal vs IContext.getVariables()

0
Hi. In the official OQL module the “Add parameter” action stores the query parameters in a ThreadLocal before they’re used by the “Execute OQL Statement” action. Why doesn’t it use IContext.getVariables() map instead? This map is present since at least Modeler 7. I see the downside in using ThreadLocal here because the stored objects can leak into another web request that uses the same thread.   Another free module HashMapUtil also uses ThreadLocal.
asked
0 answers