View Javadoc

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