Class ResteasyProviderFactory.SortedKey<T>

java.lang.Object
org.jboss.resteasy.spi.ResteasyProviderFactory.SortedKey<T>
All Implemented Interfaces:
Comparable<ResteasyProviderFactory.SortedKey<T>>, MediaTypeMap.Typed
Enclosing class:
ResteasyProviderFactory

protected static class ResteasyProviderFactory.SortedKey<T> extends Object implements Comparable<ResteasyProviderFactory.SortedKey<T>>, MediaTypeMap.Typed
Allow us to sort message body implementations that are more specific for their types i.e. MessageBodyWriter is less specific than MessageBodyWriter.

This helps out a lot when the desired media type is a wildcard and to weed out all the possible default mappings.

  • Field Details

    • readerClass

      public Class<?> readerClass
    • obj

      public T obj
    • isBuiltin

      public boolean isBuiltin
    • template

      public Class<?> template
  • Constructor Details

    • SortedKey

      private SortedKey(Class<?> intf, T reader, Class<?> readerClass, boolean isBuiltin)
    • SortedKey

      private SortedKey(Class<?> intf, T reader, Class<?> readerClass)
  • Method Details