Class ResourceKeyConverterAdapter<T extends>

  • All Implemented Interfaces:

    public class ResourceKeyConverterAdapter<T extends>
    extends java.lang.Object
    implements org.springframework.core.convert.converter.Converter<java.lang.String,​T>
    Adapts any Key Converter into once that will first extract that key from a resource. By default, keys can be read from the file system, the classpath, and from HTTP endpoints. This can be customized by providing a ResourceLoader
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T convert​(java.lang.String source)
      void setResourceLoader​( resourceLoader)
      Use this ResourceLoader to read the key material
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.core.convert.converter.Converter

    • Constructor Detail

      • ResourceKeyConverterAdapter

        public ResourceKeyConverterAdapter​(org.springframework.core.convert.converter.Converter<,​T> delegate)
        Construct a ResourceKeyConverterAdapter with the provided parameters
        delegate - converts a stream of key material into a Key
    • Method Detail

      • convert

        public T convert​(java.lang.String source)
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<java.lang.String,​T extends>
      • setResourceLoader

        public void setResourceLoader​( resourceLoader)
        Use this ResourceLoader to read the key material
        resourceLoader - the ResourceLoader to use