Class MicronautFactory

java.lang.Object
io.micronaut.starter.cli.MicronautFactory
All Implemented Interfaces:
picocli.CommandLine.IFactory

public class MicronautFactory extends Object implements picocli.CommandLine.IFactory
Picocli factory implementation that uses a Micronaut BeanContext to obtain bean instances.
  • Constructor Details

    • MicronautFactory

      public MicronautFactory()
    • MicronautFactory

      public MicronautFactory(io.micronaut.context.BeanContext beanContext)
  • Method Details

    • create

      public <K> K create(Class<K> cls) throws Exception
      Specified by:
      create in interface picocli.CommandLine.IFactory
      Throws:
      Exception