I\'m having an issue with pulling a Spring bean from an application context.
When I try;
InnerThread instance = (InnerThread) SpringContextFactory.g
I had the same problem:
This is just a guess, but try making an interface InnerThreadInterface, then let InnerThread class extend it. After that you should be able to do:
I use this way instead of what is posted above and it worked fine. There was no need of setting the proxy-target-class to true, this required more libraries that wasn't on my classpath.
InnerThreadInterface inner = (InnerThreadInterface)ctx.getBean("innerThread");