Index

C E I M P R 
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 Callable command 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 @Option and @Parameters annotations, 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 ApplicationContext for the Environment.CLI environment, obtains an instance of the specified Callable command class from the context, injecting any beans as required, then parses the specified command line arguments, populating fields and methods annotated with picocli @Option and @Parameters annotations, 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 ApplicationContext to 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 ApplicationContext for the Environment.CLI environment, obtains an instance of the specified Callable or Runnable command class from the context, injecting any beans as required, then parses the specified command line arguments, populating fields and methods annotated with picocli @Option and @Parameters annotations, and finally executes the 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 picocli IFactory interface.
MicronautFactory() - Constructor for class io.micronaut.configuration.picocli.MicronautFactory
Constructs a MicronautFactory with the result of calling ApplicationContext.run("cli").
MicronautFactory(ApplicationContext) - Constructor for class io.micronaut.configuration.picocli.MicronautFactory
Constructs a MicronautFactory with the specified ApplicationContext.

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 Runnable command 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 @Option and @Parameters annotations, and finally runs the command.
run(Class<R>, String...) - Static method in class io.micronaut.configuration.picocli.PicocliRunner
Instantiates a new ApplicationContext for the Environment.CLI environment, obtains an instance of the specified Runnable command class from the context, injecting any beans as required, then parses the specified command line arguments, populating fields and methods annotated with picocli @Option and @Parameters annotations, and finally runs the command.
C E I M P R 
All Classes and Interfaces|All Packages