Example usage for org.springframework.beans.factory.wiring BeanWiringInfo BeanWiringInfo

List of usage examples for org.springframework.beans.factory.wiring BeanWiringInfo BeanWiringInfo

Introduction

In this page you can find the example usage for org.springframework.beans.factory.wiring BeanWiringInfo BeanWiringInfo.

Prototype

public BeanWiringInfo(int autowireMode, boolean dependencyCheck) 

Source Link

Document

Create a new BeanWiringInfo that indicates autowiring.

Usage

From source file:com.ccc.cccframework.vaadin_spring.application.VaadinConfigurableBeanWiringInfoResolver.java

private BeanWiringInfo buildWiringInfo(Object bean, VaadinConfigurable annotation) {
    if (!Autowire.NO.equals(annotation.autowire()))
        return new BeanWiringInfo(annotation.autowire().value(), annotation.dependencyCheck());
    if (annotation.value().length() > 0)
        return new BeanWiringInfo(annotation.value(), false);
    return new BeanWiringInfo(getDefaultBeanName(bean), true);
}