@SuppressWarnings("unchecked")
protected final void initializeProcessors() {
processorMap = new HashMap<Class, Processor>();
// initialize the service processor
JarCloningProcessor serviceProcessor = new JarCloningProcessor(
PackageUtil.getProperties().getProperty("service.template.path"),
PackageUtil.getProperties().getProperty("service.output.path"));
serviceProcessor.setFilter(new OpentidesFilter());
processorMap.put(Service.class, serviceProcessor);
// initialize the dao processor
JarCloningProcessor daoProcessor = new JarCloningProcessor(
PackageUtil.getProperties().getProperty("dao.template.path"),
PackageUtil.getProperties().getProperty("dao.output.path"));
daoProcessor.setFilter(new OpentidesFilter());
processorMap.put(Dao.class, daoProcessor);
// initialize the controller processor
JarCloningProcessor controllerProcessor = new JarCloningProcessor(
PackageUtil.getProperties().getProperty("controller.template.path"),
PackageUtil.getProperties().getProperty("controller.output.path"));
controllerProcessor.setFilter(new OpentidesFilter());
processorMap.put(Controller.class, controllerProcessor);
// initialize the view/jsp processor
JarCloningProcessor viewProcessor = new JarCloningProcessor(
PackageUtil.getProperties().getProperty("jsp.template.path"),
PackageUtil.getProperties().getProperty("jsp.output.path"));
viewProcessor.setFilter(new OpentidesFilter());
processorMap.put(Page.class, viewProcessor);
}