@Service(name="microprofile-openapi-service") @RunLevel(value=10) public class OpenApiService extends Object implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy, EventListener, ConfigListener
EventListener.Event<T>
Constructor and Description |
---|
OpenApiService() |
Modifier and Type | Method and Description |
---|---|
UnprocessedChangeEvents |
changed(PropertyChangeEvent[] event)
Listen for OpenAPI config changes.
|
void |
event(EventListener.Event<?> event)
Listen for application deployment events.
|
org.eclipse.microprofile.openapi.models.OpenAPI |
getDocument() |
static OpenApiService |
getInstance() |
boolean |
isEnabled() |
boolean |
isSecurityEnabled() |
void |
postConstruct() |
void |
preDestroy() |
boolean |
withCorsHeaders() |
public void postConstruct()
postConstruct
in interface org.glassfish.hk2.api.PostConstruct
public void preDestroy()
preDestroy
in interface org.glassfish.hk2.api.PreDestroy
public boolean isEnabled()
public boolean isSecurityEnabled()
public boolean withCorsHeaders()
public UnprocessedChangeEvents changed(PropertyChangeEvent[] event)
changed
in interface ConfigListener
event
- list of changespublic void event(EventListener.Event<?> event)
event
in interface EventListener
public org.eclipse.microprofile.openapi.models.OpenAPI getDocument() throws OpenAPIBuildException
OpenAPIBuildException
- if creating the document failed.public static OpenApiService getInstance()
Copyright © 2019. All rights reserved.