Home | History | Annotate | Download | only in provider
      1 package com.bumptech.glide.provider;
      2 
      3 import com.bumptech.glide.load.model.ModelLoader;
      4 import com.bumptech.glide.load.resource.transcode.ResourceTranscoder;
      5 
      6 /**
      7  * An extension of {@link com.bumptech.glide.provider.DataLoadProvider} that also allows a
      8  * {@link com.bumptech.glide.load.model.ModelLoader} and a
      9  * {@link com.bumptech.glide.load.resource.transcode.ResourceTranscoder} to be retrieved.
     10  *
     11  * @param <A> The type of model.
     12  * @param <T> The type of data that will be decoded from.
     13  * @param <Z> The type of resource that will be decoded.
     14  * @param <R> The type of resource that the decoded resource will be transcoded to.
     15  */
     16 public interface LoadProvider<A, T, Z, R> extends DataLoadProvider<T, Z> {
     17 
     18     /**
     19      * Returns the {@link com.bumptech.glide.load.model.ModelLoader} to convert from the given model to a data type.
     20      */
     21     ModelLoader<A, T> getModelLoader();
     22 
     23     /**
     24      * Returns the {@link com.bumptech.glide.load.resource.transcode.ResourceTranscoder} to convert from the decoded
     25      * and transformed resource into the transcoded resource.
     26      */
     27     ResourceTranscoder<Z, R> getTranscoder();
     28 }
     29