Class ResteasyProviderFactory.SortedKey<T>

  • All Implemented Interfaces:
    java.lang.Comparable<ResteasyProviderFactory.SortedKey<T>>, MediaTypeMap.Typed
    Enclosing class:
    ResteasyProviderFactory

    protected static class ResteasyProviderFactory.SortedKey<T>
    extends java.lang.Object
    implements java.lang.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.

      • Constructor Summary

        Constructors 
        Modifier Constructor Description
        private SortedKey​(java.lang.Class<?> intf, T reader, java.lang.Class<?> readerClass)  
        private SortedKey​(java.lang.Class<?> intf, T reader, java.lang.Class<?> readerClass, boolean isBuiltin)  
      • Field Detail

        • readerClass

          public java.lang.Class<?> readerClass
        • obj

          public T obj
        • isBuiltin

          public boolean isBuiltin
        • template

          public java.lang.Class<?> template
      • Constructor Detail

        • SortedKey

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

          private SortedKey​(java.lang.Class<?> intf,
                            T reader,
                            java.lang.Class<?> readerClass)