 |
Return to article.
Listing 6. MoversSupervisor has two copies of StylingMover
public MoversSupervisor(Messenger messenger,
TemplatesManager templates,
boolean build)
throws XMException
{
try
{
movers = new HashMap();
// eventually, there will be more options here
movers.put("xml",new StylingMover(messenger,this,templates,build));
XMLReader xmlReader = JAXPHelper.createXMLReader(true);
XMLFilter filter = new WalkFilter(xmlReader,messenger);
movers.put("xm", new StylingMover(messenger,this,templates,filter,build));
copier = new CopyingMover(messenger,build);
}
catch(SAXException e)
{
throw new XMException(e);
}
}
|
Return to article.
|  |
|