Example usage for org.springframework.beans BeanUtils findMethodWithMinimalParameters

List of usage examples for org.springframework.beans BeanUtils findMethodWithMinimalParameters

Introduction

In this page you can find the example usage for org.springframework.beans BeanUtils findMethodWithMinimalParameters.

Prototype

@Nullable
public static Method findMethodWithMinimalParameters(Method[] methods, String methodName)
        throws IllegalArgumentException 

Source Link

Document

Find a method with the given method name and minimal parameters (best case: none) in the given list of methods.

Usage

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

@Nullable
private Method findDestroyMethod(String name) {
    return (this.nonPublicAccessAllowed ? BeanUtils.findMethodWithMinimalParameters(this.bean.getClass(), name)
            : BeanUtils.findMethodWithMinimalParameters(this.bean.getClass().getMethods(), name));
}