Example usage for org.springframework.util ReflectionUtils isObjectMethod

List of usage examples for org.springframework.util ReflectionUtils isObjectMethod

Introduction

In this page you can find the example usage for org.springframework.util ReflectionUtils isObjectMethod.

Prototype

public static boolean isObjectMethod(@Nullable Method method) 

Source Link

Document

Determine whether the given method is originally declared by java.lang.Object .

Usage

From source file:net.paslavsky.springrest.SpringRestClientAOPAdvisor.java

@Override
public boolean matches(Method method, Class<?> targetClass) {
    return !ReflectionUtils.isObjectMethod(method) && Modifier.isAbstract(method.getModifiers());
}

From source file:org.psnively.scala.beans.ScalaBeanInfo.java

private static PropertyDescriptor[] initPropertyDescriptors(BeanInfo beanInfo) {
    Map<String, PropertyDescriptor> propertyDescriptors = new TreeMap<String, PropertyDescriptor>(
            new PropertyNameComparator());
    for (PropertyDescriptor pd : beanInfo.getPropertyDescriptors()) {
        propertyDescriptors.put(pd.getName(), pd);
    }/*from  w  w  w.  ja v  a2  s. co m*/

    for (MethodDescriptor md : beanInfo.getMethodDescriptors()) {
        Method method = md.getMethod();

        if (ReflectionUtils.isObjectMethod(method)) {
            continue;
        }
        if (isScalaSetter(method)) {
            addScalaSetter(propertyDescriptors, method);
        } else if (isScalaGetter(method)) {
            addScalaGetter(propertyDescriptors, method);
        }
    }
    return propertyDescriptors.values().toArray(new PropertyDescriptor[propertyDescriptors.size()]);
}