Example usage for org.springframework.format.datetime.joda JodaTimeContextHolder resetJodaTimeContext

List of usage examples for org.springframework.format.datetime.joda JodaTimeContextHolder resetJodaTimeContext

Introduction

In this page you can find the example usage for org.springframework.format.datetime.joda JodaTimeContextHolder resetJodaTimeContext.

Prototype

public static void resetJodaTimeContext() 

Source Link

Document

Reset the JodaTimeContext for the current thread.

Usage

From source file:com.springsource.greenhouse.home.DateTimeZoneHandlerInterceptor.java

public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler,
        Exception ex) throws Exception {
    JodaTimeContextHolder.resetJodaTimeContext();
}

From source file:name.cphillipson.experimental.gwt.server.interceptor.DateTimeZoneHandlerInterceptor.java

@Override
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler,
        Exception ex) throws Exception {
    JodaTimeContextHolder.resetJodaTimeContext();
}