
Originally Posted by
Marten Deinum
Read the docs I would say.. You make it so by letting it implement the ApplicationContextAware interface....
Finally the problem is solved by using the code below.
Code:
@Autowired
ApplicationContext appContext;
if (e.getApplicationContext().equals(appContext)) {
// do something
}