Example usage for org.springframework.context.annotation ScannedGenericBeanDefinition setScope

List of usage examples for org.springframework.context.annotation ScannedGenericBeanDefinition setScope

Introduction

In this page you can find the example usage for org.springframework.context.annotation ScannedGenericBeanDefinition setScope.

Prototype

@Override
public void setScope(@Nullable String scope) 

Source Link

Document

Set the name of the target scope for the bean.

Usage

From source file:org.rosenvold.spring.convention.ConventionBeanFactory.java

private ScannedGenericBeanDefinition createScannedBeanDefinition(Class<?> resolvedType) {
    final ScannedGenericBeanDefinition rootBeanDefinition = getScannedBeanDefinition(resolvedType);
    rootBeanDefinition.applyDefaults(this.beanDefinitionDefaults);
    processCommonDefinitionAnnotations(rootBeanDefinition);
    rootBeanDefinition.setScope(getAnnotatedScope(resolvedType));
    return rootBeanDefinition;
}