org.jboss.resteasy.spi
Class ResteasyProviderFactory.SortedKey<T>

java.lang.Object
  extended by 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 Summary
 boolean isBuiltin
           
 boolean isGeneric
           
 T obj
           
 Class readerClass
           
 Class template
           
 
Method Summary
 int compareTo(ResteasyProviderFactory.SortedKey<T> tMessageBodyKey)
           
 Class getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readerClass

public Class readerClass

obj

public T obj

isGeneric

public boolean isGeneric

isBuiltin

public boolean isBuiltin

template

public Class template
Method Detail

compareTo

public int compareTo(ResteasyProviderFactory.SortedKey<T> tMessageBodyKey)
Specified by:
compareTo in interface Comparable<ResteasyProviderFactory.SortedKey<T>>

getType

public Class getType()
Specified by:
getType in interface MediaTypeMap.Typed


Copyright © 2012. All Rights Reserved.