Package com.bumptech.glide.load.model
Class UnitModelLoader.Factory<Model>
- java.lang.Object
-
- com.bumptech.glide.load.model.UnitModelLoader.Factory<Model>
-
- Type Parameters:
Model- The type of model that will also be returned as decodable data.
- All Implemented Interfaces:
ModelLoaderFactory<Model,Model>
- Enclosing class:
- UnitModelLoader<Model>
public static class UnitModelLoader.Factory<Model> extends java.lang.Object implements ModelLoaderFactory<Model,Model>
Factory for producingUnitModelLoaders.
-
-
Constructor Summary
Constructors Constructor Description Factory()Deprecated.UsegetInstance()instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelLoader<Model,Model>build(MultiModelLoaderFactory multiFactory)Build a concrete ModelLoader for this model type.static <T> UnitModelLoader.Factory<T>getInstance()voidteardown()A lifecycle method that will be called when this factory is about to replaced.
-
-
-
Constructor Detail
-
Factory
@Deprecated public Factory()
Deprecated.UsegetInstance()instead.
-
-
Method Detail
-
getInstance
public static <T> UnitModelLoader.Factory<T> getInstance()
-
build
@NonNull public ModelLoader<Model,Model> build(MultiModelLoaderFactory multiFactory)
Description copied from interface:ModelLoaderFactoryBuild a concrete ModelLoader for this model type.- Specified by:
buildin interfaceModelLoaderFactory<Model,Model>- Parameters:
multiFactory- A map of classes to factories that can be used to construct additionalModelLoaders that this factory'sModelLoadermay depend on- Returns:
- A new
ModelLoader
-
teardown
public void teardown()
Description copied from interface:ModelLoaderFactoryA lifecycle method that will be called when this factory is about to replaced.- Specified by:
teardownin interfaceModelLoaderFactory<Model,Model>
-
-