Lines Matching defs:factory
10 * Maintain a map of model class to factory to retrieve a {@link ModelLoaderFactory} and/or a {@link ModelLoader}
33 * null if no such factory is registered. Clears all cached model loaders.
54 * factory registered for the given model and resource classes or null if no such factory existed. Clears all cached
59 * @param factory The factory to register.
65 ModelLoaderFactory<T, Y> factory) {
74 ModelLoaderFactory<T, Y> previous = resourceToFactories.put(resourceClass, factory);
77 // This factory may be being used by another model. We don't want to say it has been removed unless we
113 final ModelLoaderFactory<T, Y> factory = getFactory(modelClass, resourceClass);
114 if (factory != null) {
115 result = factory.build(context, this);
161 // match a subclass of a model with a factory for a super class of that model if if there isn't a
162 // factory for that particular subclass. Uris are a great example of when this happens, most uris
163 // are actually subclasses for Uri, but we'd generally rather load them all with the same factory rather