public class LinkDiscoverers extends Object
PluginRegistry
for LinkDiscoverer
so that it's easier to inject them into
clients wanting to lookup a LinkDiscoverer
for a given MediaTypes
.Constructor and Description |
---|
LinkDiscoverers(org.springframework.plugin.core.PluginRegistry<LinkDiscoverer,MediaType> discoverers)
Creates a new
LinkDiscoverers instance with the given PluginRegistry . |
Modifier and Type | Method and Description |
---|---|
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. |
public LinkDiscoverers(org.springframework.plugin.core.PluginRegistry<LinkDiscoverer,MediaType> discoverers)
LinkDiscoverers
instance with the given PluginRegistry
.discoverers
- must not be null.public LinkDiscoverer getLinkDiscovererFor(MediaType mediaType)
LinkDiscoverer
suitable for the given MediaType
.mediaType
- public LinkDiscoverer getLinkDiscovererFor(String mediaType)
LinkDiscoverer
suitable for the given media type.mediaType
- Copyright © 2012-2015–2015 Pivotal, Inc.. All rights reserved.