Class CommandLinePropertySource

  • All Implemented Interfaces:
    PropertySource, io.micronaut.core.order.Ordered, java.lang.Iterable<java.lang.String>

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

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME
      The name of the property source.
      static int POSITION
      The position of the loader.
      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandLinePropertySource​(io.micronaut.core.cli.CommandLine commandLine)
      Construct the CommandLinePropertySource from properties passed from command line.
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        The name of the property source.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CommandLinePropertySource

        public CommandLinePropertySource​(io.micronaut.core.cli.CommandLine commandLine)
        Construct the CommandLinePropertySource from properties passed from command line.
        Parameters:
        commandLine - Represents the parsed command line options.
    • Method Detail

      • getOrder

        public int getOrder()