Example usage for org.springframework.beans.factory.config ConfigurableBeanFactory registerScope

List of usage examples for org.springframework.beans.factory.config ConfigurableBeanFactory registerScope

Introduction

In this page you can find the example usage for org.springframework.beans.factory.config ConfigurableBeanFactory registerScope.

Prototype

void registerScope(String scopeName, Scope scope);

Source Link

Document

Register the given scope, backed by the given Scope implementation.

Usage

From source file:io.neba.core.spring.applicationcontext.configuration.RequestScopeConfigurator.java

public void registerRequestScope(ConfigurableBeanFactory beanFactory) {
    beanFactory.registerScope(SCOPE_REQUEST, new RequestScope());
}