I want to inject an ApplicationContext
itself to a bean.
Something like
public void setApplicationContext(ApplicationContect context) {
this.context = context;
}
Is that possible in spring?
Previous comments are ok, but I usually prefer:
@Autowired private ApplicationContext applicationContext;