Class NestedConfiguration

java.lang.Object
io.micronaut.starter.feature.config.NestedConfiguration

public class NestedConfiguration extends Object
A utility class to supply nested configuration via Configuration.addNested(NestedConfiguration).
Since:
3.9.x
Author:
Sergio del Amo
  • Constructor Details

    • NestedConfiguration

      public NestedConfiguration(@NonNull @NonNull String path, @NonNull @NonNull Map<String,Object> configuration)
      For path = custom.config and configuration = [foo: [enabled: true, name: 'bar'] the generated config will be:
       custom:
         config:
           foo:
             enabled: true
             name: bar
       
      Parameters:
      path - root path
      configuration - configuration
  • Method Details

    • getPath

      @NonNull public @NonNull String getPath()
    • getConfiguration

      @NonNull public @NonNull Map<String,Object> getConfiguration()