Example usage for org.springframework.core.type MethodMetadata isAbstract

List of usage examples for org.springframework.core.type MethodMetadata isAbstract

Introduction

In this page you can find the example usage for org.springframework.core.type MethodMetadata isAbstract.

Prototype

boolean isAbstract();

Source Link

Document

Return whether the underlying method is effectively abstract: i.e.

Usage

From source file:org.springframework.context.annotation.ConfigurationClassParser.java

/**
 * Register default methods on interfaces implemented by the configuration class.
 *///from w  w w .  ja  v a2s.co  m
private void processInterfaces(ConfigurationClass configClass, SourceClass sourceClass) throws IOException {
    for (SourceClass ifc : sourceClass.getInterfaces()) {
        Set<MethodMetadata> beanMethods = retrieveBeanMethodMetadata(ifc);
        for (MethodMetadata methodMetadata : beanMethods) {
            if (!methodMetadata.isAbstract()) {
                // A default method or other concrete method on a Java 8+ interface...
                configClass.addBeanMethod(new BeanMethod(methodMetadata, configClass));
            }
        }
        processInterfaces(configClass, ifc);
    }
}