@Component @Order(value=-2147483648) public class PropertyDiscriminatorBasedInheritancePlugin extends java.lang.Object implements ModelBuilderPlugin
Constructor and Description |
---|
PropertyDiscriminatorBasedInheritancePlugin(com.fasterxml.classmate.TypeResolver typeResolver,
TypeNameExtractor typeNameExtractor) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ModelContext context)
Implement this method to override the @see springfox.documentation.schema.Model using the @see springfox
.documentation.builders.ModelBuilder
|
boolean |
supports(DocumentationType delimiter) |
@Autowired public PropertyDiscriminatorBasedInheritancePlugin(com.fasterxml.classmate.TypeResolver typeResolver, TypeNameExtractor typeNameExtractor)
public void apply(ModelContext context)
ModelBuilderPlugin
apply
in interface ModelBuilderPlugin
context
- - context that can be used to override the model attributespublic boolean supports(DocumentationType delimiter)
supports
in interface org.springframework.plugin.core.Plugin<DocumentationType>