{ 28
// the similar with the first function 29
return false; 30
} 31
32
public void Add(IOutputter outputter)
{ 33
outputterVector.add(outputter); 34
} 35
36
public void Remove(IOutputter outputter)
{ 37
outputterVector.remove(outputter); 38
} 39
40
}
Code 1
package my.cnblog.output; 2
3
/**//*Modified Outputter Factory*/ 4
5
public class OutputterFactory
{ 6
IOutputter Create(String outputterList)
{ 7
OutputterContainer oc = new OutputterContainer(); 8
String[] list = outputterList.split(";"); 9
for (int i=0;i