First time here? Check out the FAQ!
![]() | 1 | initial version | |
I'm considering how to implement thread local beans in a project using ZK. While browsing for some ideas/answers, I stumbled over org.zkoss.zkplus.util.ThreadLocalListener
and I'm wondering what this class is for.
At first glance, it seems to overwrite private fields in Spring but why?
I'm also wondering what the status of this class is; it looks like a prototype: Exceptions are handled with ex.printStackTrace()
, multi-threaded code writes to HashMap
s without proper synchronization, the code is slow (it doesn't, for example, cache anything) and it relies on internals of external frameworks (like class names and internal field names). Is this class safe for production use?
![]() | 2 | Formatting |
I'm considering how to implement thread local beans in a project using ZK. While browsing for some ideas/answers, I stumbled over org.zkoss.zkplus.util.ThreadLocalListener
and I'm wondering what this class is for.
At first glance, it seems to overwrite private fields in Spring but why?
I'm also wondering what the status of this class is; it looks like a prototype: prototype:
ex.printStackTrace()
HashMap
s without proper Is this class safe for production use?