Class NaiveResourceLinkContributionContext
java.lang.Object
org.glassfish.jersey.linking.contributing.NaiveResourceLinkContributionContext
- All Implemented Interfaces:
ResourceLinkContributionContext
public class NaiveResourceLinkContributionContext
extends Object
implements ResourceLinkContributionContext
Simple map based implementation of the ResourceLinkContributionContext.
- Author:
- Leonard Brünings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetContributorsFor
(Class<?> entityClass) Returns all link contributions for an entity class.
-
Constructor Details
-
NaiveResourceLinkContributionContext
C'tor- Parameters:
erc
- the ExtendedResourceContext
-
-
Method Details
-
getContributorsFor
Description copied from interface:ResourceLinkContributionContext
Returns all link contributions for an entity class. It also includes contributions for every ancestor of entityClass.- Specified by:
getContributorsFor
in interfaceResourceLinkContributionContext
- Parameters:
entityClass
- the entityClass- Returns:
- list of link contributions to add to the class
-