org.springframework.core.convert.support
Class StringToLocaleConverter

java.lang.Object
  extended by org.springframework.core.convert.support.StringToLocaleConverter
All Implemented Interfaces:
Converter<java.lang.String,java.util.Locale>

final class StringToLocaleConverter
extends java.lang.Object
implements Converter<java.lang.String,java.util.Locale>

Converts a String to a Locale.

Since:
3.0
Author:
Keith Donald

Constructor Summary
StringToLocaleConverter()
           
 
Method Summary
 java.util.Locale convert(java.lang.String source)
          Convert the source of type S to target type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringToLocaleConverter

StringToLocaleConverter()
Method Detail

convert

public java.util.Locale convert(java.lang.String source)
Description copied from interface: Converter
Convert the source of type S to target type T.

Specified by:
convert in interface Converter<java.lang.String,java.util.Locale>
Parameters:
source - the source object to convert, which must be an instance of S
Returns:
the converted object, which must be an instance of T