All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.content.rest.config.HypermediaConfiguration Maven / Gradle / Ivy

There is a newer version: 3.0.15
Show newest version
package org.springframework.content.rest.config;

import internal.org.springframework.content.rest.links.ContentLinksResourceProcessor;
import internal.org.springframework.content.rest.mappingcontext.ContentPropertyToRequestMappingContext;
import internal.org.springframework.content.rest.mappingcontext.ContentPropertyToLinkrelMappingContext;
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, ContentPropertyToRequestMappingContext requestMappingContext, ContentPropertyToLinkrelMappingContext linkrelMappingContext) {
		return new ContentLinksResourceProcessor(stores, config, mappingContext, requestMappingContext, linkrelMappingContext);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy