ModelLoaderRegistry

open class ModelLoaderRegistry

Maintains an ordered put of ModelLoaders and the model and data types they handle in order from highest priority to lowest.

Constructors

Link copied to clipboard
open fun ModelLoaderRegistry(throwableListPool: Pool<List<Throwable>>)

Functions

Link copied to clipboard
open fun <Model, Data> append(    modelClass: Class<Model>,     dataClass: Class<Data>,     factory: ModelLoaderFactory<out Model, out Data>)
Link copied to clipboard
open fun <Model, Data> build(modelClass: Class<Model>, dataClass: Class<Data>): ModelLoader<Model, Data>
Link copied to clipboard
open fun getDataClasses(modelClass: Class<out Any>): List<Class<out Any>>
Link copied to clipboard
open fun <A> getModelLoaders(model: A): List<ModelLoader<A, out Any>>
Link copied to clipboard
open fun <Model, Data> prepend(    modelClass: Class<Model>,     dataClass: Class<Data>,     factory: ModelLoaderFactory<out Model, out Data>)
Link copied to clipboard
open fun <Model, Data> remove(modelClass: Class<Model>, dataClass: Class<Data>)
Link copied to clipboard
open fun <Model, Data> replace(    modelClass: Class<Model>,     dataClass: Class<Data>,     factory: ModelLoaderFactory<out Model, out Data>)