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

org.codegas.webservice.spring.WebAppScopeMetaDataResolver Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package org.codegas.webservice.spring;

import org.codegas.commons.lang.annotation.RequestScope;
import org.codegas.commons.lang.annotation.SessionScope;
import org.springframework.context.annotation.Jsr330ScopeMetadataResolver;
import org.springframework.web.context.WebApplicationContext;

public class WebAppScopeMetaDataResolver extends Jsr330ScopeMetadataResolver {

    public WebAppScopeMetaDataResolver() {
        registerScope(SessionScope.class.getName(), WebApplicationContext.SCOPE_SESSION);
        registerScope(RequestScope.class.getName(), WebApplicationContext.SCOPE_REQUEST);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy