Package ubic.gemma.rest.util
Class OpenApiFactory
- java.lang.Object
-
- ubic.gemma.rest.util.OpenApiFactory
-
- All Implemented Interfaces:
Aware,DisposableBean,FactoryBean<io.swagger.v3.oas.models.OpenAPI>,ServletConfigAware
public class OpenApiFactory extends Object implements FactoryBean<io.swagger.v3.oas.models.OpenAPI>, ServletConfigAware, DisposableBean
Factory forOpenAPI.The singleton is managed by
OpenApiContextLocatorand identified by the contextId argument.
-
-
Constructor Summary
Constructors Constructor Description OpenApiFactory(String contextId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()io.swagger.v3.oas.models.OpenAPIgetObject()Class<?>getObjectType()booleanisSingleton()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.web.context.ServletConfigAware
setServletConfig
-
-
-
-
Constructor Detail
-
OpenApiFactory
public OpenApiFactory(String contextId)
-
-
Method Detail
-
getObject
public io.swagger.v3.oas.models.OpenAPI getObject() throws Exception- Specified by:
getObjectin interfaceFactoryBean<io.swagger.v3.oas.models.OpenAPI>- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<io.swagger.v3.oas.models.OpenAPI>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceFactoryBean<io.swagger.v3.oas.models.OpenAPI>
-
destroy
public void destroy()
- Specified by:
destroyin interfaceDisposableBean
-
-