Example usage for org.springframework.boot BeanDefinitionLoader BeanDefinitionLoader

List of usage examples for org.springframework.boot BeanDefinitionLoader BeanDefinitionLoader

Introduction

In this page you can find the example usage for org.springframework.boot BeanDefinitionLoader BeanDefinitionLoader.

Prototype

BeanDefinitionLoader(BeanDefinitionRegistry registry, Object... sources) 

Source Link

Document

Create a new BeanDefinitionLoader that will load beans into the specified BeanDefinitionRegistry .

Usage

From source file:org.springframework.boot.SpringApplication.java

/**
 * Factory method used to create the {@link BeanDefinitionLoader}.
 * @param registry the bean definition registry
 * @param sources the sources to load//from  w  ww. j a v  a2 s. c  o m
 * @return the {@link BeanDefinitionLoader} that will be used to load beans
 */
protected BeanDefinitionLoader createBeanDefinitionLoader(BeanDefinitionRegistry registry, Object[] sources) {
    return new BeanDefinitionLoader(registry, sources);
}