#1479 - Polishing.
This commit is contained in:
@@ -24,7 +24,7 @@ import org.springframework.util.Assert;
|
||||
/**
|
||||
* {@link EntityLinks} implementation that delegates to the {@link EntityLinks} instances registered in the
|
||||
* {@link PluginRegistry} given on instance creation.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
public class DelegatingEntityLinks extends AbstractEntityLinks {
|
||||
@@ -33,7 +33,7 @@ public class DelegatingEntityLinks extends AbstractEntityLinks {
|
||||
|
||||
/**
|
||||
* Creates a new {@link DelegatingEntityLinks} using the given {@link PluginRegistry}.
|
||||
*
|
||||
*
|
||||
* @param plugins must not be {@literal null}.
|
||||
*/
|
||||
public DelegatingEntityLinks(PluginRegistry<EntityLinks, Class<?>> plugins) {
|
||||
@@ -60,7 +60,7 @@ public class DelegatingEntityLinks extends AbstractEntityLinks {
|
||||
return getPluginFor(type).linkFor(type, parameters);
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.hateoas.EntityLinks#getLinkToCollectionResource(java.lang.Class)
|
||||
*/
|
||||
@@ -69,7 +69,7 @@ public class DelegatingEntityLinks extends AbstractEntityLinks {
|
||||
return getPluginFor(type).linkToCollectionResource(type);
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.hateoas.EntityLinks#getLinkToSingleResource(java.lang.Class, java.lang.Object)
|
||||
*/
|
||||
@@ -99,7 +99,7 @@ public class DelegatingEntityLinks extends AbstractEntityLinks {
|
||||
/**
|
||||
* Returns the plugin for the given type or throws an {@link IllegalArgumentException} if no delegate
|
||||
* {@link EntityLinks} can be found.
|
||||
*
|
||||
*
|
||||
* @param type must not be {@literal null}.
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link DelegatingEntityLinks}.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
class DelegatingEntityLinksUnitTest extends TestUtils {
|
||||
|
||||
Reference in New Issue
Block a user