Lines Matching refs:factory
169 * Return the current factory (or null). This is called on each element
170 * name. If the factory returns an item, add that to the hierarchy. If it
180 * once; after setting, you can not change the factory. This is called on
181 * each element name as the XML is parsed. If the factory returns an item,
182 * that is added to the hierarchy. If it returns null, the next factory
186 * own factory to it, use {@link #cloneInContext} to clone the existing
188 * instance. This will merge your own factory with whatever factory the
191 public void setFactory(Factory<T> factory) {
194 "A factory has already been set on this inflater");
196 if (factory == null) {
197 throw new NullPointerException("Given factory can not be null");
201 mFactory = factory;
203 mFactory = new FactoryMerger<T>(factory, mFactory);