* Factory method to create internal class generator. Called from
* constructor.
*/
protected ClassGenerationAction createGenerator() {
ClassGenerationAction action;
if (client) {
action = new ClientClassGenerationAction();
} else if (ClassGenerator.VERSION_1_1.equals(version)) {
action = new ClassGenerationAction1_1();
} else {
action = new ClassGenerationAction();
}
action.setDestDir(destDir);
action.setEncoding(encoding);
action.setMakePairs(makePairs);
action.setArtifactsGenerationMode(mode);
action.setOutputPattern(outputPattern);
action.setOverwrite(overwrite);
action.setSuperPkg(superPkg);
action.setSuperTemplate(superTemplate);
action.setTemplate(template);
action.setEmbeddableSuperTemplate(embeddableSuperTemplate);
action.setEmbeddableTemplate(embeddableTemplate);
action.setUsePkgPath(usePkgPath);
return action;
}