Interface YamlResourceLoader


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T loadResource​(java.lang.String resourceName, java.lang.Class<T> toValueType)
      Loads the YML resource and returns object
    • Method Detail

      • loadResource

        <T> T loadResource​(@Nonnull
                           java.lang.String resourceName,
                           @Nonnull
                           java.lang.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