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
OpenApiContextLocator
and 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 void
destroy()
io.swagger.v3.oas.models.OpenAPI
getObject()
Class<?>
getObjectType()
boolean
isSingleton()
-
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:
getObject
in interfaceFactoryBean<io.swagger.v3.oas.models.OpenAPI>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceFactoryBean<io.swagger.v3.oas.models.OpenAPI>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceFactoryBean<io.swagger.v3.oas.models.OpenAPI>
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceDisposableBean
-
-