Index
All Classes and Interfaces|All Packages
C
- call(Class<C>, ApplicationContext, String...) - Static method in class io.micronaut.configuration.picocli.PicocliRunner
-
Obtains an instance of the specified
Callablecommand class from the specified context, injecting any beans from the specified context as required, then parses the specified command line arguments, populating fields and methods annotated with picocli@Optionand@Parametersannotations, and finally calls the command and returns the result. - call(Class<C>, String...) - Static method in class io.micronaut.configuration.picocli.PicocliRunner
-
Instantiates a new
ApplicationContextfor theEnvironment.CLIenvironment, obtains an instance of the specifiedCallablecommand class from the context, injecting any beans as required, then parses the specified command line arguments, populating fields and methods annotated with picocli@Optionand@Parametersannotations, and finally calls the command and returns the result. - close() - Method in class io.micronaut.configuration.picocli.MicronautFactory
-
Closes the underlying
ApplicationContext. - create(Class<K>) - Method in class io.micronaut.configuration.picocli.MicronautFactory
-
Delegates to the
ApplicationContextto either find or instantiate a bean of the specified type.
E
- execute(Class<?>, String...) - Static method in class io.micronaut.configuration.picocli.PicocliRunner
-
Instantiates a new
ApplicationContextfor theEnvironment.CLIenvironment, obtains an instance of the specifiedCallableorRunnablecommand class from the context, injecting any beans as required, then parses the specified command line arguments, populating fields and methods annotated with picocli@Optionand@Parametersannotations, and finallyexecutesthe command and returns the resulting exit code. - execute(Class<?>, Collection<String>, String...) - Static method in class io.micronaut.configuration.picocli.PicocliRunner
-
Same than
execute(Class, String...), but with a list of customEnvironments to be applied.
I
- io.micronaut.configuration.picocli - package io.micronaut.configuration.picocli
-
Configuration for picocli.
M
- MicronautFactory - Class in io.micronaut.configuration.picocli
-
An
ApplicationContext-based implementation of the picocliIFactoryinterface. - MicronautFactory() - Constructor for class io.micronaut.configuration.picocli.MicronautFactory
-
Constructs a
MicronautFactorywith the result of callingApplicationContext.run("cli"). - MicronautFactory(ApplicationContext) - Constructor for class io.micronaut.configuration.picocli.MicronautFactory
-
Constructs a
MicronautFactorywith the specifiedApplicationContext.
P
- PicocliRunner - Class in io.micronaut.configuration.picocli
-
Utility class with convenience methods for running picocli-based commands with a micronaut application context.
- PicocliRunner() - Constructor for class io.micronaut.configuration.picocli.PicocliRunner
R
- run(Class<R>, ApplicationContext, String...) - Static method in class io.micronaut.configuration.picocli.PicocliRunner
-
Obtains an instance of the specified
Runnablecommand class from the specified context, injecting any beans from the specified context as required, then parses the specified command line arguments, populating fields and methods annotated with picocli@Optionand@Parametersannotations, and finally runs the command. - run(Class<R>, String...) - Static method in class io.micronaut.configuration.picocli.PicocliRunner
-
Instantiates a new
ApplicationContextfor theEnvironment.CLIenvironment, obtains an instance of the specifiedRunnablecommand class from the context, injecting any beans as required, then parses the specified command line arguments, populating fields and methods annotated with picocli@Optionand@Parametersannotations, and finally runs the command.
All Classes and Interfaces|All Packages