#850 - Polishing.

Moved to factory methods on PluginRegistry.
This commit is contained in:
Oliver Drotbohm
2019-03-05 14:20:07 +01:00
parent ae08cd0eee
commit 4b08aa783e
3 changed files with 5 additions and 13 deletions

View File

@@ -40,7 +40,7 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.plugin.core.OrderAwarePluginRegistry;
import org.springframework.plugin.core.PluginRegistry;
import org.springframework.util.Assert;
import org.springframework.web.client.RestOperations;
import org.springframework.web.client.RestTemplate;
@@ -161,7 +161,7 @@ public class Traverson {
? DEFAULTS.getLinkDiscoverers(mediaTypes) //
: discoverer;
this.discoverers = new LinkDiscoverers(OrderAwarePluginRegistry.of(defaultedDiscoverers));
this.discoverers = new LinkDiscoverers(PluginRegistry.of(defaultedDiscoverers));
return this;
}