org.springframework.hateoas.config
Annotation Type EnableHypermediaSupport
@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
@Import(value=org.springframework.hateoas.config.HypermediaSupportBeanDefinitionRegistrar.class)
public @interface EnableHypermediaSupport
Activates hypermedia support in the ApplicationContext. Will register infrastructure beans available for
injection to ease building hypermedia related code. Which components get registered depends on the hypermedia type
being activated through the type() attribute. Hypermedia-type-specific implementations of the following
components will be registered:
LinkDiscoverer
- a Jackson (1 or 2, dependning on what is on the classpath) module to correctly marshal the resource model classes
into the appropriate representation.
- Author:
- Oliver Gierke
- See Also:
LinkDiscoverer,
EntityLinks
type
public abstract EnableHypermediaSupport.HypermediaType[] type
- The hypermedia type to be supported.
- Returns:
Copyright © 2012-2014–2014 Pivotal, Inc.. All rights reserved.