public class MyApplicationContextAwareClass
{
@Autowired(required = true)
private ApplicationContext applicationContext;
// ...
}
Probably not very usable if you like to test your class (or you have to made the property package visible). But if your class is a test it is very nice and quite usefull.