All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.att.ajsc.common.RequestScopeModifier Maven / Gradle / Ivy

There is a newer version: 6.2.0.4-oss
Show newest version
package com.att.ajsc.common;

import java.util.HashMap;

import org.springframework.beans.factory.config.CustomScopeConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.SimpleThreadScope;

public class RequestScopeModifier {

	private static final String SCOPE_REQUEST = "request";

	@Bean
	public CustomScopeConfigurer customScopeConfigurer() {
		CustomScopeConfigurer scopeConfigurer = new CustomScopeConfigurer();

		HashMap scopes = new HashMap();
		scopes.put(SCOPE_REQUEST, new SimpleThreadScope());
		scopeConfigurer.setScopes(scopes);

		return scopeConfigurer;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy