Skip to content

Instantly share code, notes, and snippets.

@igm
Created August 24, 2011 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igm/1167990 to your computer and use it in GitHub Desktop.
Save igm/1167990 to your computer and use it in GitHub Desktop.
Implementing ApplicationContextAware
package foo;
import org.springframework.context.ApplicationContextAware;
public class MyBeanImpl implements ApplicationContextAware {
private ApplicationContext ctx;
public void setApplicationContext(ApplicationContext context) {
this.ctx=context;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment