Package io.micronaut.context.env
Class CommandLinePropertySource
- java.lang.Object
-
- io.micronaut.context.env.MapPropertySource
-
- io.micronaut.context.env.CommandLinePropertySource
-
- All Implemented Interfaces:
PropertySource
,io.micronaut.core.order.Ordered
,java.lang.Iterable<java.lang.String>
public class CommandLinePropertySource extends MapPropertySource
APropertySource
for properties parsed from the command line.- Since:
- 1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.context.env.PropertySource
PropertySource.PropertyConvention
-
-
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
-
Fields inherited from interface io.micronaut.context.env.PropertySource
CONTEXT
-
-
Constructor Summary
Constructors Constructor Description CommandLinePropertySource(io.micronaut.core.cli.CommandLine commandLine)
Construct the CommandLinePropertySource from properties passed from command line.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
-
Methods inherited from class io.micronaut.context.env.MapPropertySource
asMap, get, getName, iterator, of, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.micronaut.context.env.PropertySource
getConvention
-
-
-
-
Field Detail
-
POSITION
public static final int POSITION
The position of the loader.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
The name of the property source.- See Also:
- Constant Field Values
-
-