Class StringToNameConverter

java.lang.Object
org.springframework.ldap.convert.StringToNameConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,Name>

public final class StringToNameConverter extends Object implements org.springframework.core.convert.converter.Converter<String,Name>
A converer from String to Name.

Helpful for ObjectDirectoryMapper for converting fields. Also helpful when working with Name instances in Spring MVC applications.

Since:
3.3
  • Constructor Details

    • StringToNameConverter

      public StringToNameConverter()
  • Method Details

    • convert

      public Name convert(String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,Name>