View Javadoc

1   package net.sf.beanrunner.factory.impl;
2   
3   import java.util.Collection;
4   
5   import net.sf.beanrunner.factory.AbstractInstanceFactory;
6   
7   public class CollectionInstanceFactory extends AbstractInstanceFactory {
8   	private Collection coll;
9   
10  	public CollectionInstanceFactory(Collection coll) {
11  		this.coll = coll;
12  	}
13  
14  	protected void initCollection(Collection collection) {
15  		collection.add(null);
16  		collection.add(coll);
17  	}
18  }