Interface YamlResourceLoader


@Beta public interface YamlResourceLoader
Util to load a YML resource and convert to a POJO .
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    loadResource(String resourceName, Class<T> toValueType)
    Loads the YML resource and returns object
  • Method Details

    • loadResource

      <T> T loadResource(@Nonnull String resourceName, @Nonnull Class<T> toValueType)
      Loads the YML resource and returns object
      Parameters:
      resourceName - YML file resource co-located with plugin source.
      toValueType - converts to this type.
      Returns:
      Returns object of the specified type