Author: Łukasz Wycisk

A short story of the Java-based container configuration in the Spring Framework

A few weeks ago my workmate asked me a question: “How does the Spring Framework handle a self-invocation on a creation of beans?” He was thinking about a situation like this one: @Configuration class MyConfig{ @Bean ABean  aBean(){ return new ABean(this.bBean()) } @Bean BBean bBean(){ return new BBean() } } In this case we see…

Read more...

ThreadLocal and ExecutorService

Recently I have been working on some code in which I was using ThreadLocal variables. This give me possibility to chew over the ThreadLocal variables concept again. The basic idea of this approach is quite simple. Every thread has its own copy of a ThreadLocalMap. When you ask for the value of the ThreadLocal variable…

Read more...

We use cookies to enhance your user experience. By continuing to browse the site, you are agreeing to our use of cookies.
Read more