Example usage for org.springframework.beans.factory.support AutowireUtils isExcludedFromDependencyCheck

List of usage examples for org.springframework.beans.factory.support AutowireUtils isExcludedFromDependencyCheck

Introduction

In this page you can find the example usage for org.springframework.beans.factory.support AutowireUtils isExcludedFromDependencyCheck.

Prototype

public static boolean isExcludedFromDependencyCheck(PropertyDescriptor pd) 

Source Link

Document

Determine whether the given bean property is excluded from dependency checks.

Usage

From source file:org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.java

/**
 * Determine whether the given bean property is excluded from dependency checks.
 * <p>This implementation excludes properties defined by CGLIB and
 * properties whose type matches an ignored dependency type or which
 * are defined by an ignored dependency interface.
 * @param pd the PropertyDescriptor of the bean property
 * @return whether the bean property is excluded
 * @see #ignoreDependencyType(Class)//from w  w  w  .  ja  v a2 s .  com
 * @see #ignoreDependencyInterface(Class)
 */
protected boolean isExcludedFromDependencyCheck(PropertyDescriptor pd) {
    return (AutowireUtils.isExcludedFromDependencyCheck(pd)
            || this.ignoredDependencyTypes.contains(pd.getPropertyType())
            || AutowireUtils.isSetterDefinedInInterface(pd, this.ignoredDependencyInterfaces));
}