Description
Devs can override the GridSystemServiceBootstrap to customize behavior, sure. However, this is a heavy weight service with quite some dependencies.
Idea is to create a simple SPI to customize layout fallback behavior on a per class basis.
public static interface FallbackLayoutDataSource { /** * Implementing service beans may provide custom defaults (for specific types) if required.<br> * Implementing service beans may chose to be indifferent by returning an empty {@link Try}. */ Try<String> tryLoadAsStringUtf8(Class<?> domainClass); }
Easy to provide as Spring managed bean.