Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-1319

Allow mixins of ModuleOptionsMetadata

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: M6
    • Component/s: Configuration
    • Labels:
      None
    • Story Points:
      5
    • Rank (Obsolete):
      42653

      Description

      A lot of modules have similar options. Moreover, job modules often have options that belong to at least two domains (eg jdbc + hdfs).

      I think that by using FlattenedCompositeModuleOptionsMetadata, we could come up with a way to combine several options POJOs into one. Something like:

      public class JdbcHdfsOptionsMetadata {

      @OptionsMixin
      private JdbcOptionsMetadata jdbc;

      @OptionsMixin
      private HdfsOptionsMetadata hdfs;
      }

      this would expose eg "driverClass" as well as "rolloverSize" as top level options. Values could be actually injected into the fields, so that eg custom validation could occur (default validation for the mixin class would occur by default)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            eric.bottard Eric Bottard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: