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