Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16159

The method ConfigurationNotificationEvent#config works unexpectedly

    XMLWordPrintableJSON

Details

    Description

      For the case of a hidden configuration (marked with @InternalConfiguration) in ConfigurationNotificationEvent#config, need to make it possible to obtain this configuration using not only the parent but also itself.

      Example:

      @Config
      public class TableConfigurationSchema {
          @Value
          public String name;
      }
      
      @InternalConfiguration
      public class ExtendedTableConfigurationSchema extends TableConfigurationSchema {
          @Value
          public String id;
      }
      
      ...
      
      tableCfg.name().listen(ctx -> {
          TableConfiguration tableConfig = ctx.config(TableConfiguration.class);
          ExtendedTableConfiguration tableExConfig = ctx.config(ExtendedTableConfiguration.class);
      
          assert tableConfig != null;
          assert tableExConfig != null;
      
          return CompletableFuture.completedFuture(null);
      });
      

      Attachments

        Issue Links

          Activity

            People

              ktkalenko@gridgain.com Kirill Tkalenko
              tledkov-gridgain Taras Ledkov
              Semyon Danilov Semyon Danilov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h