|
From: <da...@da...> - 2008-06-11 10:00:32
|
On Tue, 10 Jun 2008, Robert Winch wrote: > I am looking for a method to easily access the current ApplicationContext > that is not bound to j2ee. The closest thing I have found is > org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(), > but this class has dependencies on j2ee. Is there a recommended way of > obtaining the current ApplicationContext for applications that may exist > outside the web? let them implement ApplicationContextAware - or @autowire in an application context. -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com |