-
Sub-task
-
Resolution: Done
-
Major
-
2.17.0.Final
-
None
Today the JSF methods FacesNewBeanCommand, FacesNewConverterCommand and FacesNewValidatorCommand use templating.
For the little amount of code that is generated, it would be better to use Roaster instead. And in the refactoring process, add some tests.
Today the JSF commands have the following hierarchy :
AbstractUICommand implements UICommand AbstractProjectCommand AbstractJavaEECommand AbstractFacesCommand implements PrerequisiteCommandsProvider FacesNewBeanCommand implements PrerequisiteCommandsProvider FacesNewConverterCommand FacesNewValidatorCommand
But most of the other Java EE commands extend AbstractJavaSourceCommand and not AbstractJavaEECommand
AbstractUICommand implements UICommand AbstractProjectCommand AbstractJavaSourceCommand<SOURCETYPE extends JavaSource<?>> AbstractCDICommand<T extends JavaSource<?>> implements PrerequisiteCommandsProvider CDINewBeanCommand CDINewDecoratorCommand CDINewExtensionCommand AbstractJPACommand<T extends JavaSource<?>> implements PrerequisiteCommandsProvider JPANewEntityCommand JPANewEntityListenerCommand JPANewMappedSuperclassCommand AbstractServletNewCommand<T extends JavaSource<?>> implements PrerequisiteCommandsProvider ServletNewServletCommand ServletNewFilterCommand