Example usage for org.springframework.data.rest.webmvc.json EnumTranslator EnumTranslator

List of usage examples for org.springframework.data.rest.webmvc.json EnumTranslator EnumTranslator

Introduction

In this page you can find the example usage for org.springframework.data.rest.webmvc.json EnumTranslator EnumTranslator.

Prototype

public EnumTranslator(MessageResolver resolver) 

Source Link

Document

Creates a new EnumTranslator using the given MessageSourceAccessor .

Usage

From source file:org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration.java

@Bean
public EnumTranslator enumTranslator() {
    return new EnumTranslator(resourceDescriptionMessageSourceAccessor());
}