org.springframework.web.servlet.view.velocity
Class VelocityView.LocaleAwareNumberTool

java.lang.Object
  extended by NumberTool
      extended by org.springframework.web.servlet.view.velocity.VelocityView.LocaleAwareNumberTool
Enclosing class:
VelocityView

private static class VelocityView.LocaleAwareNumberTool
extends NumberTool

Subclass of NumberTool from Velocity Tools, using a passed-in Locale (usually the RequestContext Locale) instead of the default Locale.

See Also:
RequestContextUtils.getLocale(HttpServletRequest)

Field Summary
private  java.util.Locale locale
           
 
Constructor Summary
private VelocityView.LocaleAwareNumberTool(java.util.Locale locale)
           
 
Method Summary
 java.util.Locale getLocale()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locale

private final java.util.Locale locale
Constructor Detail

VelocityView.LocaleAwareNumberTool

private VelocityView.LocaleAwareNumberTool(java.util.Locale locale)
Method Detail

getLocale

public java.util.Locale getLocale()