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

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

Introduction

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

Prototype

public static boolean isSetterDefinedInInterface(PropertyDescriptor pd, Set<Class<?>> interfaces) 

Source Link

Document

Return whether the setter method of the given bean property is defined in any of the given interfaces.

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)// w w w . java  2 s.  co m
 * @see #ignoreDependencyInterface(Class)
 */
protected boolean isExcludedFromDependencyCheck(PropertyDescriptor pd) {
    return (AutowireUtils.isExcludedFromDependencyCheck(pd)
            || this.ignoredDependencyTypes.contains(pd.getPropertyType())
            || AutowireUtils.isSetterDefinedInInterface(pd, this.ignoredDependencyInterfaces));
}