public class DefaultControllerFactory extends java.lang.Object implements ControllerFactory
| Constructor and Description |
|---|
DefaultControllerFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
instantiateController(java.lang.Class<? extends java.lang.Object> cls,
io.swagger.models.Operation operation)
Instantiates the provided class calling cls.newInstance()
|
public java.lang.Object instantiateController(java.lang.Class<? extends java.lang.Object> cls,
io.swagger.models.Operation operation)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
instantiateController in interface ControllerFactorycls - the class to be instantiatedoperation - the operation to instantiatejava.lang.IllegalAccessException - The class cannot be initializedjava.lang.InstantiationException - The class cannot be initializedCopyright © 2019. All Rights Reserved.