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
Constructors Constructor Description NaiveResourceLinkContributionContext(ExtendedResourceContext erc)C'tor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ProvideLinkDescriptor>getContributorsFor(Class<?> entityClass)Returns all link contributions for an entity class.
-
-
-
Constructor Detail
-
NaiveResourceLinkContributionContext
public NaiveResourceLinkContributionContext(@Context ExtendedResourceContext erc)
C'tor- Parameters:
erc- the ExtendedResourceContext
-
-
Method Detail
-
getContributorsFor
public List<ProvideLinkDescriptor> getContributorsFor(Class<?> entityClass)
Description copied from interface:ResourceLinkContributionContextReturns all link contributions for an entity class. It also includes contributions for every ancestor of entityClass.- Specified by:
getContributorsForin interfaceResourceLinkContributionContext- Parameters:
entityClass- the entityClass- Returns:
- list of link contributions to add to the class
-
-