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 |
|---|---|
Optional<LinkDiscoverer> |
getLinkDiscovererFor(MediaType mediaType)
Returns the
LinkDiscoverer suitable for the given MediaType. |
Optional<LinkDiscoverer> |
getLinkDiscovererFor(String mediaType)
Returns the
LinkDiscoverer suitable for the given media type. |
LinkDiscoverer |
getRequiredLinkDiscovererFor(MediaType mediaType)
Returns the
LinkDiscoverer suitable for the given MediaType. |
LinkDiscoverer |
getRequiredLinkDiscovererFor(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 Optional<LinkDiscoverer> getLinkDiscovererFor(MediaType mediaType)
LinkDiscoverer suitable for the given MediaType.mediaType - public Optional<LinkDiscoverer> getLinkDiscovererFor(String mediaType)
LinkDiscoverer suitable for the given media type.mediaType - public LinkDiscoverer getRequiredLinkDiscovererFor(MediaType mediaType)
LinkDiscoverer suitable for the given MediaType.mediaType - public LinkDiscoverer getRequiredLinkDiscovererFor(String mediaType)
LinkDiscoverer suitable for the given media type.mediaType - Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.