1 package net.sf.beanrunner.factory;
2
3 import java.util.*;
4
5 public abstract class AbstractInstanceFactory implements InstanceFactory {
6
7 private Set sett;
8
9 protected AbstractInstanceFactory() {
10 sett = new HashSet();
11 }
12
13 public Iterator iterator() {
14 Set set = new HashSet();
15 initCollection(set);
16 return set.iterator();
17 }
18
19 protected abstract void initCollection(Collection collection);
20
21 }