public class DynamicResourceBundleConstraintDescriptionResolver extends Object implements org.springframework.restdocs.constraints.ConstraintDescriptionResolver
ResourceBundleConstraintDescriptionResolver
but with ability to evaluate constraint's message attribute before falling back to property files.| Constructor and Description |
|---|
DynamicResourceBundleConstraintDescriptionResolver() |
DynamicResourceBundleConstraintDescriptionResolver(ResourceBundle resourceBundle) |
| Modifier and Type | Method and Description |
|---|---|
String |
resolveDescription(org.springframework.restdocs.constraints.Constraint constraint)
First resolves based on overridden message on constraint itself, then falls back to resource bundle resolution
|
public DynamicResourceBundleConstraintDescriptionResolver()
public DynamicResourceBundleConstraintDescriptionResolver(ResourceBundle resourceBundle)
public String resolveDescription(org.springframework.restdocs.constraints.Constraint constraint)
resolveDescription in interface org.springframework.restdocs.constraints.ConstraintDescriptionResolverCopyright © 2020 Scalable Capital GmbH. All rights reserved.