Package org.springframework.web.method.annotation

Examples of org.springframework.web.method.annotation.SessionAttributesHandler


   * Return the {@link SessionAttributesHandler} instance for the given
   * handler type, never {@code null}.
   */
  private SessionAttributesHandler getSessionAttributesHandler(HandlerMethod handlerMethod) {
    Class<?> handlerType = handlerMethod.getBeanType();
    SessionAttributesHandler sessionAttrHandler = this.sessionAttributesHandlerCache.get(handlerType);
    if (sessionAttrHandler == null) {
      synchronized(this.sessionAttributesHandlerCache) {
        sessionAttrHandler = this.sessionAttributesHandlerCache.get(handlerType);
        if (sessionAttrHandler == null) {
          sessionAttrHandler = new SessionAttributesHandler(handlerType, sessionAttributeStore);
          this.sessionAttributesHandlerCache.put(handlerType, sessionAttrHandler);
        }
      }
    }
    return sessionAttrHandler;
View Full Code Here


    requestMethod.setParameterNameDiscoverer(this.parameterNameDiscoverer);
    return requestMethod;
  }

  private ModelFactory getModelFactory(HandlerMethod handlerMethod, WebDataBinderFactory binderFactory) {
    SessionAttributesHandler sessionAttrHandler = getSessionAttributesHandler(handlerMethod);
    Class<?> handlerType = handlerMethod.getBeanType();
    Set<Method> methods = this.modelAttributeCache.get(handlerType);
    if (methods == null) {
      methods = HandlerMethodSelector.selectMethods(handlerType, MODEL_ATTRIBUTE_METHODS);
      this.modelAttributeCache.put(handlerType, methods);
View Full Code Here

   * Return the {@link SessionAttributesHandler} instance for the given
   * handler type, never {@code null}.
   */
  private SessionAttributesHandler getSessionAttributesHandler(HandlerMethod handlerMethod) {
    Class<?> handlerType = handlerMethod.getBeanType();
    SessionAttributesHandler sessionAttrHandler = this.sessionAttributesHandlerCache.get(handlerType);
    if (sessionAttrHandler == null) {
      synchronized(this.sessionAttributesHandlerCache) {
        sessionAttrHandler = this.sessionAttributesHandlerCache.get(handlerType);
        if (sessionAttrHandler == null) {
          sessionAttrHandler = new SessionAttributesHandler(handlerType, sessionAttributeStore);
          this.sessionAttributesHandlerCache.put(handlerType, sessionAttrHandler);
        }
      }
    }
    return sessionAttrHandler;
View Full Code Here

    requestMethod.setParameterNameDiscoverer(this.parameterNameDiscoverer);
    return requestMethod;
  }
 
  private ModelFactory getModelFactory(HandlerMethod handlerMethod, WebDataBinderFactory binderFactory) {
    SessionAttributesHandler sessionAttrHandler = getSessionAttributesHandler(handlerMethod);
    Class<?> handlerType = handlerMethod.getBeanType();
    Set<Method> methods = this.modelFactoryCache.get(handlerType);
    if (methods == null) {
      methods = HandlerMethodSelector.selectMethods(handlerType, MODEL_ATTRIBUTE_METHODS);
      this.modelFactoryCache.put(handlerType, methods);
View Full Code Here

   * Return the {@link SessionAttributesHandler} instance for the given
   * handler type, never {@code null}.
   */
  private SessionAttributesHandler getSessionAttributesHandler(HandlerMethod handlerMethod) {
    Class<?> handlerType = handlerMethod.getBeanType();
    SessionAttributesHandler sessionAttrHandler = this.sessionAttributesHandlerCache.get(handlerType);
    if (sessionAttrHandler == null) {
      synchronized (this.sessionAttributesHandlerCache) {
        sessionAttrHandler = this.sessionAttributesHandlerCache.get(handlerType);
        if (sessionAttrHandler == null) {
          sessionAttrHandler = new SessionAttributesHandler(handlerType, sessionAttributeStore);
          this.sessionAttributesHandlerCache.put(handlerType, sessionAttrHandler);
        }
      }
    }
    return sessionAttrHandler;
View Full Code Here

    requestMethod.setParameterNameDiscoverer(this.parameterNameDiscoverer);
    return requestMethod;
  }

  private ModelFactory getModelFactory(HandlerMethod handlerMethod, WebDataBinderFactory binderFactory) {
    SessionAttributesHandler sessionAttrHandler = getSessionAttributesHandler(handlerMethod);
    Class<?> handlerType = handlerMethod.getBeanType();
    Set<Method> methods = this.modelAttributeCache.get(handlerType);
    if (methods == null) {
      methods = HandlerMethodSelector.selectMethods(handlerType, MODEL_ATTRIBUTE_METHODS);
      this.modelAttributeCache.put(handlerType, methods);
View Full Code Here

TOP

Related Classes of org.springframework.web.method.annotation.SessionAttributesHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.