4 responses to “Implementing Seam style @Logger injection with Spring”

  1. aappddeevv

    Great note. If you want to, you can add a ReflectionUtils.makeAccessible() call in the post processor to make private fields accessible for the set assuming no security issues are detected. Also, if you are using slf4j, you’ll need to change the names slightly. Instead of Logger perhaps ClassLogger.

  2. @Logger injection in springframework • Blog Archive • beyond - e blog

    [...] my search on google how to inject beans generated by a bean-factory, I’ve found thisnice article about injecting a logger into beans. About this [...]

  3. @Logger injection in springframework • Blog Archive • beyond - e blog

    [...] my search on google how to inject beans generated by a bean-factory, I’ve found this nice article about injecting a logger into beans. About this [...]

  4. ravi

    Really great article for developer