@Override public ModelLoader<T, Y> build(Context context, GenericLoaderFactory factories) { try { return new ModelLoaderWrapper<>(wrapped.build(context, factories), handler); } catch (RuntimeException | Error e) { handler.handle(e); throw e; } }
@Override public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) { return new OkHttpUrlLoader(client); }
@Override public StreamModelLoader<DecryptableUri> build(Context context, GenericLoaderFactory factories) { return new DecryptableStreamUriLoader(context); }
@Override public StreamModelLoader<AttachmentModel> build(Context context, GenericLoaderFactory factories) { return new AttachmentStreamUriLoader(context); }
@Override public StreamModelLoader<ContactPhotoUri> build(Context context, GenericLoaderFactory factories) { return new ContactPhotoUriLoader(context); }
@Override public ModelLoader<AudioFileCover, InputStream> build(Context context, GenericLoaderFactory factories) { return new AudioFileCoverLoader(); }
@Override public ModelLoader<ArtistImage, InputStream> build(Context context, GenericLoaderFactory factories) { return new ArtistImageLoader(context, lastFMClient, okHttpFactory.build(context, factories)); }
@Override public ModelLoader<String, InputStream> build(Context context, GenericLoaderFactory factories) { return new ProgressModelLoader(mModelCache); }
PosterLoader(Context context, GenericLoaderFactory factory) { resourceLoader = new StreamResourceLoader(context, factory.buildModelLoader(Uri.class, InputStream.class)); }
@Override public ModelLoader<PosterPath, InputStream> build(Context context, GenericLoaderFactory factories) { return new PosterLoader(context, factories); }
ProfileLoader(Context context, GenericLoaderFactory factory) { resourceLoader = new StreamResourceLoader(context, factory.buildModelLoader(Uri.class, InputStream.class)); }
@Override public ModelLoader<ProfilePath, InputStream> build(Context context, GenericLoaderFactory factories) { return new ProfileLoader(context, factories); }
BackdropLoader(Context context, GenericLoaderFactory factory) { resourceLoader = new StreamResourceLoader(context, factory.buildModelLoader(Uri.class, InputStream.class)); }
@Override public ModelLoader<BackdropPath, InputStream> build(Context context, GenericLoaderFactory factories) { return new BackdropLoader(context, factories); }
@Override public ModelLoader<PosterPath, InputStream> build(Context context, GenericLoaderFactory factories) { return new PosterLoader(factories.buildModelLoader(GlideUrl.class, InputStream.class)); }
@Override public ModelLoader<ProfilePath, InputStream> build(Context context, GenericLoaderFactory factories) { return new ProfileLoader(factories.buildModelLoader(GlideUrl.class, InputStream.class)); }
@Override public ModelLoader<BackdropPath, InputStream> build(Context context, GenericLoaderFactory factories) { return new BackdropLoader(factories.buildModelLoader(GlideUrl.class, InputStream.class)); }
@Override public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) { return new VolleyUrlLoader(requestQueue, requestFactory); }
@Override public ModelLoader<AppInfo, InputStream> build(Context context, GenericLoaderFactory factories) { return new AppInfoIconLoader(context); }
@Override public ModelLoader<CustomImageSizeModel, InputStream> build(Context context, GenericLoaderFactory genericLoaderFactory) { return new CustomImageSizeUrlLoader(context); }
@Override public ModelLoader<VideoThumbnail, InputStream> build(Context context, GenericLoaderFactory factories) { return new VideoThumbnailLoader(); }
@Override public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) { return new SynoxHttpUrlLoader(); }
@Override public ModelLoader<CustomImageSizeModel, InputStream> build(Context context, GenericLoaderFactory factories) { return new CustomImageModelLoader(context); }
@Override public ModelLoader<Media, InputStream> build(Context context, GenericLoaderFactory factories) { return new MediaLoader(context); }