org.springframework.content.rest.config.HypermediaConfiguration Maven / Gradle / Ivy
package org.springframework.content.rest.config;
import internal.org.springframework.content.rest.links.ContentLinksResourceProcessor;
import internal.org.springframework.content.rest.mappingcontext.RequestMappingToLinkrelMappingContext;
import org.springframework.content.commons.mappingcontext.MappingContext;
import org.springframework.content.commons.storeservice.Stores;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.data.rest.webmvc.PersistentEntityResource;
import org.springframework.hateoas.server.RepresentationModelProcessor;
@Configuration
@Import(RestConfiguration.class)
public class HypermediaConfiguration {
@Bean
public RepresentationModelProcessor contentLinksProcessor(Stores stores, RestConfiguration config, MappingContext mappingContext, RequestMappingToLinkrelMappingContext linkrelMappingContext) {
return new ContentLinksResourceProcessor(stores, config, mappingContext, linkrelMappingContext);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy