com.att.ajsc.common.RequestScopeModifier Maven / Gradle / Ivy
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