Class Hal


  • public class Hal
    extends java.lang.Object
    Author:
    Daniel Meyer
    • Field Detail

      • APPLICATION_HAL_JSON

        public static final java.lang.String APPLICATION_HAL_JSON
        See Also:
        Constant Field Values
      • APPLICATION_HAL_JSON_TYPE

        public static final javax.ws.rs.core.MediaType APPLICATION_HAL_JSON_TYPE
      • instance

        public static Hal instance
      • halLinkResolvers

        protected java.util.Map<java.lang.Class<?>,​HalLinkResolver> halLinkResolvers
      • halRelationCaches

        protected java.util.Map<java.lang.Class<?>,​Cache> halRelationCaches
    • Constructor Detail

      • Hal

        public Hal()
    • Method Detail

      • getInstance

        public static Hal getInstance()
      • getLinkResolver

        public HalLinkResolver getLinkResolver​(java.lang.Class<?> resourceClass)
      • registerHalRelationCache

        public void registerHalRelationCache​(java.lang.Class<?> entityClass,
                                             Cache cache)
      • getHalRelationCache

        public Cache getHalRelationCache​(java.lang.Class<?> resourceClass)
      • destroyHalRelationCaches

        public void destroyHalRelationCaches()