Class JHipsterSwaggerCustomizer
- java.lang.Object
-
- io.github.jhipster.config.apidoc.customizer.JHipsterSwaggerCustomizer
-
- All Implemented Interfaces:
SwaggerCustomizer,org.springframework.core.Ordered
public class JHipsterSwaggerCustomizer extends Object implements SwaggerCustomizer, org.springframework.core.Ordered
A swagger customizer to setupDocketwith JHipster settings.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_ORDERThe default order for the customizer.
-
Constructor Summary
Constructors Constructor Description JHipsterSwaggerCustomizer(JHipsterProperties.Swagger properties)Constructor for JHipsterSwaggerCustomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(springfox.documentation.spring.web.plugins.Docket docket)Customize the Springfox Docket.intgetOrder()voidsetOrder(int order)Setter for the fieldorder.
-
-
-
Field Detail
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER
The default order for the customizer.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JHipsterSwaggerCustomizer
public JHipsterSwaggerCustomizer(JHipsterProperties.Swagger properties)
Constructor for JHipsterSwaggerCustomizer.
- Parameters:
properties- aJHipsterProperties.Swaggerobject.
-
-
Method Detail
-
customize
public void customize(springfox.documentation.spring.web.plugins.Docket docket)
Customize the Springfox Docket.- Specified by:
customizein interfaceSwaggerCustomizer- Parameters:
docket- the Docket to customize
-
setOrder
public void setOrder(int order)
Setter for the field
order.- Parameters:
order- a int.
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
-