Class AbstractCommandSpecProcessor.NullFactory
- java.lang.Object
-
- picocli.codegen.annotation.processing.AbstractCommandSpecProcessor.NullFactory
-
- All Implemented Interfaces:
CommandLine.IFactory
- Enclosing class:
- AbstractCommandSpecProcessor
static class AbstractCommandSpecProcessor.NullFactory extends java.lang.Object implements CommandLine.IFactory
-
-
Constructor Summary
Constructors Constructor Description NullFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K> K
create(java.lang.Class<K> cls)
Returns an instance of the specified class.
-
-
-
Method Detail
-
create
public <K> K create(java.lang.Class<K> cls) throws java.lang.Exception
Description copied from interface:CommandLine.IFactory
Returns an instance of the specified class.- Specified by:
create
in interfaceCommandLine.IFactory
- Type Parameters:
K
- the type of the object to return- Parameters:
cls
- the class of the object to return- Returns:
- the instance
- Throws:
java.lang.Exception
- an exception detailing what went wrong when creating or obtaining the instance
-
-