Class ResourceWriter.ResourceWriterComparator

  • All Implemented Interfaces:
    Comparator<ResourceWriter>
    Enclosing class:
    ResourceWriter

    public static class ResourceWriter.ResourceWriterComparator
    extends Object
    implements Comparator<ResourceWriter>
    The 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