-
public interface ModelLoaderFactory<T, Y>An interface for creating a ModelLoader for a given model type.
The application Context can be passed in to the constructor of the factory when necessary. It's unsafe to retain android.app.Activitys in factories. The Context can be obtained from registerComponents in most cases.
-
-
Method Summary
Modifier and Type Method Description abstract ModelLoader<T, Y>build(@NonNull() MultiModelLoaderFactory multiFactory)Build a concrete ModelLoader for this model type. abstract voidteardown()A lifecycle method that will be called when this factory is about to replaced. -
-
Method Detail
-
build
@NonNull() abstract ModelLoader<T, Y> build(@NonNull() MultiModelLoaderFactory multiFactory)
Build a concrete ModelLoader for this model type.
- Parameters:
multiFactory- A map of classes to factories that can be used to construct additionalModelLoaders that this factory's ModelLoader may depend on
-
teardown
abstract void teardown()
A lifecycle method that will be called when this factory is about to replaced.
-
-
-
-