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

java.lang.Object
  extended by org.jboss.resteasy.spi.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.


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

Field Detail

readerClass

public java.lang.Class readerClass

obj

public T obj

isGeneric

public boolean isGeneric

isBuiltin

public boolean isBuiltin

template

public java.lang.Class template
Method Detail

compareTo

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

getType

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


Copyright © 2010. All Rights Reserved.