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> Kcreate(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.ExceptionDescription copied from interface:CommandLine.IFactoryReturns an instance of the specified class.- Specified by:
createin 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
-
-