Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3619

SPI for the GridSystemServiceBootstrap to provide custom layouts.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Resolved
    • None
    • 2.0.0-RC3
    • Core
    • None

    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.

      Attachments

        Activity

          People

            hobrom Andi Huber
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: