Package org.jboss.resteasy.reactive.common.model
package org.jboss.resteasy.reactive.common.model
-
ClassDescriptionThis comparator is used when a TreeMap is employed to order objects that have priority because TreeMap will only keep one key if multiple keys compare to the same valueClass that represents information about injectable beans as we scan them, such as resource endpoint beans, or BeanParam classes.ResourceExceptionMapper<T extends Throwable>A representation of a REST endpoint.The comparison for now is simple: 1) Application provided writers come first 2) Readers with lower priority come first (same as reader interceptors) 3) Then the more specific the media type, the higher the priority 4) Finally we compare the number of media types The spec doesn't seem to mention this sorting being explicitly needed, but there are tests in the TCK that only pass reliably if the Readers are sorted like thisThe comparison for now is simple: 1) Application provided writers come first 2) Writers higher priority come first (same as writer interceptors) 3) Then the more specific the media type, the higher the priority 4) Finally we compare the number of media types