Package io.swagger.codegen
Class CodegenModelFactory
- java.lang.Object
-
- io.swagger.codegen.CodegenModelFactory
-
public final class CodegenModelFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description CodegenModelFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
newInstance(CodegenModelType type)
static void
setTypeMapping(CodegenModelType type, Class<?> implementation)
Configure a different implementation class.
-
-
-
Method Detail
-
setTypeMapping
public static void setTypeMapping(CodegenModelType type, Class<?> implementation)
Configure a different implementation class.- Parameters:
type
- the type that shall be replacedimplementation
- the implementation class must extend the default class and must provide a public no-arg constructor
-
newInstance
public static <T> T newInstance(CodegenModelType type)
-
-