What i am looking for is getting the spring application context somehow along the following lines :
ApplicationContext ac = SomeSpringClass.getCurrentContext()
// As you may notice, the SomeSpringClass is not real
// it's just what i am looking for as an example
other solution are welcome as long as the do not use the classic ways to get the application context (@Autowired, implementing ApplicationContextAware, Constructor injection, Setter injection...)-