XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 2.18.0.Final
    • 2.17.0.Final
    • Java EE
    • 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
      

              agoncal Antonio Goncalves (Inactive)
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: