Class ChildLoadProvider<A,T,Z,R>

  • Type Parameters:
    A - The type of the model the resource will be loaded from.
    T - The type of the data that will be retrieved for the model.
    Z - The type of the resource that will be decoded from the data.
    R - The type of the resource that will be transcoded from the decoded resource.
    All Implemented Interfaces:
    DataLoadProvider<T,Z>, LoadProvider<A,T,Z,R>, Cloneable


    public class ChildLoadProvider<A,T,Z,R>
    extends Object
    implements LoadProvider<A,T,Z,R>, Cloneable
    A LoadProvider that returns classes preferentially from those set on it but that also defaults to a wrapped LoadProvider when a particular class is not set.
    • Constructor Detail

    • Method Detail

      • setCacheDecoder

        public void setCacheDecoder(ResourceDecoder<File,Z> cacheDecoder)
        Sets the ResourceDecoder to use for decoding the resource from the disk cache.
        Parameters:
        cacheDecoder - The decoder to use.
      • setSourceDecoder

        public void setSourceDecoder(ResourceDecoder<T,Z> sourceDecoder)
        Sets the ResourceDecoder to use to decoding the resource from the original data.
        Parameters:
        sourceDecoder - The decoder to use.
      • setEncoder

        public void setEncoder(ResourceEncoder<Z> encoder)
        Sets the ResourceEncoder to use to write the decoded and transformed resource to the disk cache.
        Parameters:
        encoder - The encoder to use.
      • setTranscoder

        public void setTranscoder(ResourceTranscoder<Z,R> transcoder)
        Sets the ResourceTranscoder to use to transcode the decoded resource.
        Parameters:
        transcoder - The transcoder to use.
      • setSourceEncoder

        public void setSourceEncoder(Encoder<T> sourceEncoder)
        Sets the Encoder to use to write the original data to the disk cache.
        Parameters:
        sourceEncoder - The encoder to use.
      • getSourceEncoder

        public Encoder<T> getSourceEncoder()
        Returns the Encoder to use to write the original data to the disk cache.