Example usage for org.springframework.context ApplicationContext getParentBeanFactory

List of usage examples for org.springframework.context ApplicationContext getParentBeanFactory

Introduction

In this page you can find the example usage for org.springframework.context ApplicationContext getParentBeanFactory.

Prototype

@Nullable
BeanFactory getParentBeanFactory();

Source Link

Document

Return the parent bean factory, or null if there is none.

Usage

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());
}