By outside I mean objects that have to be instantiated within new() rather than getBean(). If you look at the example you'll see there's a Runnable class which is instantiated by the Executor. What I need is a logging aspect around the Runnable object. How would I do it in Spring configuration?
Main Topics
Browse All Topics





by: marklorenzPosted on 2008-10-21 at 05:59:46ID: 22766797
If you mean Spring AOP, you cannot use it to work outside the Spring framework/container. In this case, you could consider using AspectJ.