List of usage examples for org.springframework.context ApplicationContext getParentBeanFactory
@Nullable BeanFactory getParentBeanFactory();
From source file:org.red5.server.MuleRTMPGlobalContext.java
@Override public void setApplicationContext(ApplicationContext context) { Field field = ReflectionUtils.findField(Context.class, "applicationContext"); field.setAccessible(true);//w w w. java 2 s .c o m ReflectionUtils.setField(field, this, context); Field field2 = ReflectionUtils.findField(Context.class, "coreContext"); field2.setAccessible(true); ReflectionUtils.setField(field2, this, context.getParentBeanFactory()); }