|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the model the ModelLoader
s built by this factory
can handleY
- The type of data the ModelLoader
s built by this factory can load.public interface ModelLoaderFactory<T,Y>
An interface for creating a ModelLoader
for a given model type. Will be retained statically so should not
retain Context
or any other objects that cannot be retained for the life of the application. ModelLoaders
will not be retained statically so it is safe for any ModelLoader built by this factory to retain a reference to a
Context
.
Method Summary | |
---|---|
ModelLoader<T,Y> |
build(Context context,
GenericLoaderFactory factories)
Build a concrete ModelLoader for this model type. |
void |
teardown()
A lifecycle method that will be called when this factory is about to replaced. |
Method Detail |
---|
ModelLoader<T,Y> build(Context context, GenericLoaderFactory factories)
context
- A context that cannot be retained by the factory but can be retained by the ModelLoader
factories
- A map of classes to factories that can be used to construct additional ModelLoader
s that
this factory's ModelLoader
may depend on
ModelLoader
void teardown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |