LayoutResourceLoader

SPI for grid loading.

API

LayoutResourceLoader.java
interface LayoutResourceLoader {
  Try<LayoutResource> tryLoadLayoutResource(Class<?> domainClass, String candidateResourceName)     (1)
  Optional<LayoutResource> lookupLayoutResource(Class<?> domainClass, 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.

Members

tryLoadLayoutResource(Class, String)

Try to locate and load a LayoutResource by type and name.

Implementing beans may chose to be indifferent by returning an empty Try

lookupLayoutResource(Class, String)

Optionally returns a LayoutResource based on whether it could be resolved by type and name and successfully read.

Silently ignores exceptions underneath, if any.