|Constructor and Description|
Creates a new
|Modifier and Type||Method and Description|
Returns the relation type to be used to point to a collection resource of the given type.
Returns the relation type to be used to point to an item resource of the given type.
public ControllerLinkRelationProvider(Class<?> controller, org.springframework.plugin.core.PluginRegistry<LinkRelationProvider,LinkRelationProvider.LookupContext> providers)
controller- must not be null.
providers- must not be null.
public LinkRelation getItemResourceRelFor(Class<?> resource)
public LinkRelation getCollectionResourceRelFor(Class<?> resource)
public boolean supports(LinkRelationProvider.LookupContext context)
LinkRelationProviderimplementations based on a given
LinkRelationProvider.LookupContext. User code shouldn't need to call this method explicitly but rather use
DelegatingLinkRelationProvider, equip that with a set of
LinkRelationProviderimplementations as that will perform the selection of the matching one on invocations of
Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.