org.javalid.core.resource
Class LocaleResolverImpl

java.lang.Object
  extended by org.javalid.core.resource.LocaleResolverImpl
All Implemented Interfaces:
LocaleResolver

public class LocaleResolverImpl
extends java.lang.Object
implements LocaleResolver

Default implementation of locale resolving. This implementation returns the default locale or the explicitly set locale (in which case that one will be used always).

Since:
1.2
Version:
1.0
Author:
M.Reuvers

Constructor Summary
LocaleResolverImpl()
           
 
Method Summary
 java.util.Locale getLocale()
          Returns the locale to use
 void setLocale(java.util.Locale locale)
          Sets the locale to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleResolverImpl

public LocaleResolverImpl()
Method Detail

getLocale

public java.util.Locale getLocale()
Description copied from interface: LocaleResolver
Returns the locale to use

Specified by:
getLocale in interface LocaleResolver
Returns:
Locale to use

setLocale

public void setLocale(java.util.Locale locale)
Description copied from interface: LocaleResolver
Sets the locale to use

Specified by:
setLocale in interface LocaleResolver
Parameters:
locale - The locale to use