Example usage for org.springframework.beans.factory.config DependencyDescriptor isEager

List of usage examples for org.springframework.beans.factory.config DependencyDescriptor isEager

Introduction

In this page you can find the example usage for org.springframework.beans.factory.config DependencyDescriptor isEager.

Prototype

public boolean isEager() 

Source Link

Document

Return whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching.

Usage

From source file:org.rosenvold.spring.convention.ConventionBeanFactory.java

private String[] getCandidateNames(Class requiredType, DependencyDescriptor descriptor) {
    String[] strings = typeCache.get(requiredType);
    if (strings != null) {
        return strings;
    }/*from ww  w. j a  va2 s.c  o m*/
    strings = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(this, requiredType, true,
            descriptor.isEager());
    typeCache.put(requiredType, strings);
    return strings;
}