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.
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
FieldsModifier and TypeFieldDescriptionstatic final ThemePathResolverThe default layout:assets/<namespace>/themes/<path>.json. -
Method Summary
Modifier and TypeMethodDescriptionresourcePath(org.inspirenxe.strata.api.theme.ThemeId theme) Returns the resource path of a theme's files.
-
Field Details
-
DEFAULT
The default layout:assets/<namespace>/themes/<path>.json.
-
-
Method Details
-
resourcePath
Returns the resource path of a theme's files.- Parameters:
theme- the theme- Returns:
- the resource path, without a leading slash
-