Class YamlConfigReader

java.lang.Object
io.confluent.security.config.YamlConfigReader
All Implemented Interfaces:
ResourceLoader

public final class YamlConfigReader extends Object implements ResourceLoader
ResourceLoader for reading YAML encoded configurations.
  • Constructor Details

    • YamlConfigReader

      public YamlConfigReader()
  • Method Details

    • load

      public <T> T load(URL url, Class<T> clazz)
      Description copied from interface: ResourceLoader
      Creates a new instance of T based on the contents retrieved from the specified URL.
      Specified by:
      load in interface ResourceLoader
      Parameters:
      url - URL defining the returned object
      clazz - generic class to defined by the supplied configuration
      Returns:
      a new instance of T
    • load

      public <T> T load(InputStream inputStream, Class<T> clazz)
      Creates a new instance of T based on the contents read from the specified InputStream.
      Specified by:
      load in interface ResourceLoader
      Parameters:
      inputStream - InputStream
      clazz - generic class to defined by the supplied configuration
      Returns:
      a new Instance of T