public class MyClass implements ApplicationContextAware{
private ApplicationContext context;
...
public void setApplicationContext(ApplicationContext applicationcontext) throws BeansException {
this.context= applicationcontext;
}
}
Collection of recipes that I've used during code cooking.
Cool. Thanks for the Tip.
ReplyDelete