Andi Huber created CAUSEWAY-3619:
------------------------------------

             Summary: SPI for the GridSystemServiceBootstrap to provide custom 
layouts.
                 Key: CAUSEWAY-3619
                 URL: https://issues.apache.org/jira/browse/CAUSEWAY-3619
             Project: Causeway
          Issue Type: Improvement
          Components: Core
            Reporter: Andi Huber
            Assignee: Andi Huber
             Fix For: 2.0.0-RC3


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.

{code:java}
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);
    }
{code}

Easy to provide as Spring managed bean.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to