Spring Hateoas

org.springframework.hateoas
Class LinkDiscoverers

java.lang.Object
  extended by org.springframework.hateoas.LinkDiscoverers

public class LinkDiscoverers
extends Object

Value object to wrap a PluginRegistry for LinkDiscoverer so that it's easier to inject them into clients wanting to lookup a LinkDiscoverer for a given MediaTypes.

Author:
Oliver Gierke

Constructor Summary
LinkDiscoverers(org.springframework.plugin.core.PluginRegistry<LinkDiscoverer,MediaType> discoverers)
          Creates a new LinkDiscoverers instance with the given PluginRegistry.
 
Method Summary
 LinkDiscoverer getLinkDiscovererFor(MediaType mediaType)
          Returns the LinkDiscoverer suitable for the given MediaType.
 LinkDiscoverer getLinkDiscovererFor(String mediaType)
          Returns the LinkDiscoverer suitable for the given media type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkDiscoverers

public LinkDiscoverers(org.springframework.plugin.core.PluginRegistry<LinkDiscoverer,MediaType> discoverers)
Creates a new LinkDiscoverers instance with the given PluginRegistry.

Parameters:
discoverers - must not be null.
Method Detail

getLinkDiscovererFor

public LinkDiscoverer getLinkDiscovererFor(MediaType mediaType)
Returns the LinkDiscoverer suitable for the given MediaType.

Parameters:
mediaType -
Returns:

getLinkDiscovererFor

public LinkDiscoverer getLinkDiscovererFor(String mediaType)
Returns the LinkDiscoverer suitable for the given media type.

Parameters:
mediaType -
Returns:

Spring Hateoas

Copyright © 2012-2014-2014 Pivotal, Inc.. All Rights Reserved.