LayoutResourceLoader
A simpler SPI for GridLoaderServiceDefault .
API
LayoutResourceLoader.java
interface LayoutResourceLoader {
Try<LayoutResource> tryLoadLayoutResource(Class<?> type, String candidateResourceName) (1)
Optional<LayoutResource> lookupLayoutResource(Class<?> type, String candidateResourceName) (2)
}
1 | tryLoadLayoutResource(Class, String)
Try to locate and load a LayoutResource by type and name. |
2 | lookupLayoutResource(Class, String)
Optionally returns a LayoutResource based on whether it could be resolved by type and name and successfully read. |