Interface ThemePathResolver

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ThemePathResolver
Turns a theme id into the class path resource that holds its theme files, for VulkanThemeSource.

Implementations must return a path without a leading slash, in the form ClassLoader.getResources(String) takes, and must return the same path every time for the same id.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ThemePathResolver
    The default layout: assets/<namespace>/themes/<path>.json.
  • Method Summary

    Modifier and Type
    Method
    Description
    resourcePath(org.inspirenxe.strata.api.theme.ThemeId theme)
    Returns the resource path of a theme's files.
  • Field Details

    • DEFAULT

      static final ThemePathResolver DEFAULT
      The default layout: assets/<namespace>/themes/<path>.json.
  • Method Details

    • resourcePath

      String resourcePath(org.inspirenxe.strata.api.theme.ThemeId theme)
      Returns the resource path of a theme's files.
      Parameters:
      theme - the theme
      Returns:
      the resource path, without a leading slash