ConnectorCommandLinePropertySource

class ConnectorCommandLinePropertySource(commandLine: CommandLine, allLongOptions: List<String>) : MapPropertySource(source)

Custom Micronaut MapPropertySource that reads the command line arguments provided via the connector CLI and turns them into configuration properties. This allows the arguments to be injected into code that depends on them via Micronaut.

Constructors

Link copied to clipboard
constructor(commandLine: CommandLine, allLongOptions: List<String>)

Properties

Link copied to clipboard
open val convention: PropertySource.PropertyConvention?
Link copied to clipboard
open val name: String?
Link copied to clipboard
open val order: Int
Link copied to clipboard
@get:NonNull
open val origin: @NonNull PropertySource.Origin?

Functions

Link copied to clipboard
open fun asMap(): Map<String?, Any?>?
Link copied to clipboard
open operator fun get(key: String?): Any?
Link copied to clipboard
open operator fun iterator(): MutableIterator<String?>