Class CommandLinePropertySource

java.lang.Object
io.micronaut.context.env.MapPropertySource
io.micronaut.context.env.CommandLinePropertySource
All Implemented Interfaces:
PropertySource, Ordered, Iterable<String>

public class CommandLinePropertySource extends MapPropertySource
A PropertySource for properties parsed from the command line.
Since:
1.0
Author:
Graeme Rocher
  • Field Details

  • Constructor Details

    • CommandLinePropertySource

      public CommandLinePropertySource(CommandLine commandLine)
      Construct the CommandLinePropertySource from properties passed from command line.
      Parameters:
      commandLine - Represents the parsed command line options.
  • Method Details

    • getOrder

      public int getOrder()
      Returns:
      The order of the object. Defaults to zero (no order).