Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Resolved
-
3.0.0-alpha3
-
None
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
- links to