public class ResourceDecoderRegistry extends Object
ResourceDecoder
s capable of decoding arbitrary data types
into arbitrary resource types from highest priority decoders to lowest priority decoders.Constructor and Description |
---|
ResourceDecoderRegistry() |
Modifier and Type | Method and Description |
---|---|
<T,R> void |
append(String bucket,
ResourceDecoder<T,R> decoder,
Class<T> dataClass,
Class<R> resourceClass) |
<T,R> List<ResourceDecoder<T,R>> |
getDecoders(Class<T> dataClass,
Class<R> resourceClass) |
<T,R> List<Class<R>> |
getResourceClasses(Class<T> dataClass,
Class<R> resourceClass) |
<T,R> void |
prepend(String bucket,
ResourceDecoder<T,R> decoder,
Class<T> dataClass,
Class<R> resourceClass) |
void |
setBucketPriorityList(List<String> buckets) |
@NonNull public <T,R> List<ResourceDecoder<T,R>> getDecoders(@NonNull Class<T> dataClass, @NonNull Class<R> resourceClass)
@NonNull public <T,R> List<Class<R>> getResourceClasses(@NonNull Class<T> dataClass, @NonNull Class<R> resourceClass)
public <T,R> void append(@NonNull String bucket, @NonNull ResourceDecoder<T,R> decoder, @NonNull Class<T> dataClass, @NonNull Class<R> resourceClass)