Module info.picocli
Package picocli

Interface CommandLine.IFactory

    • Method Detail

      • create

        <K> K create​(Class<K> cls)
              throws Exception
        Returns an instance of the specified class.
        Type Parameters:
        K - the type of the object to return
        Parameters:
        cls - the class of the object to return
        Returns:
        the instance
        Throws:
        Exception - an exception detailing what went wrong when creating or obtaining the instance