Example usage for org.springframework.context.annotation AnnotationConfigUtils registerAnnotationConfigProcessors

List of usage examples for org.springframework.context.annotation AnnotationConfigUtils registerAnnotationConfigProcessors

Introduction

In this page you can find the example usage for org.springframework.context.annotation AnnotationConfigUtils registerAnnotationConfigProcessors.

Prototype

public static Set<BeanDefinitionHolder> registerAnnotationConfigProcessors(BeanDefinitionRegistry registry,
        @Nullable Object source) 

Source Link

Document

Register all relevant annotation post processors in the given registry.

Usage

From source file:org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig.java

/**
 * register the default annotation processors
 *//* w w  w.  ja  v  a 2s.c  om*/
protected void registerAnnotationProcessors(ReaderEventListener eventListener) {
    Set<BeanDefinitionHolder> processorDefinitions = AnnotationConfigUtils
            .registerAnnotationConfigProcessors(registry, null);

    // Nest the concrete beans in the surrounding component.
    for (BeanDefinitionHolder processorDefinition : processorDefinitions) {
        eventListener.componentRegistered(new BeanComponentDefinition(processorDefinition));
    }
}