Class CommandLinePropertySource
java.lang.Object
io.micronaut.context.env.MapPropertySource
io.micronaut.context.env.CommandLinePropertySource
- All Implemented Interfaces:
ImportCapablePropertySource, PropertySource, io.micronaut.core.order.Ordered, Iterable<String>
A
PropertySource for properties parsed from the command line.- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PropertySource
PropertySource.Origin, PropertySource.PropertyConvention -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the property source.static final intThe position of the loader.Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface PropertySource
CONTEXT -
Constructor Summary
ConstructorsConstructorDescriptionCommandLinePropertySource(io.micronaut.core.cli.CommandLine commandLine) Construct the CommandLinePropertySource from properties passed from command line. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface PropertySource
getConvention
-
Field Details
-
POSITION
public static final int POSITIONThe position of the loader.- See Also:
-
NAME
-
-
Constructor Details
-
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 Details
-
getOrigin
- Returns:
- The origin of the property source.
-
getOrder
public int getOrder()
-