Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-423

Add support for generic types in properties converters

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 5.2-milestone-1
    • 5.1
    • Properties
    • None

    Description

      Right now you have to indicate the converted type as hint

      @Component
      @Named("java.awt.Color")
      @Singleton
      public class ColorConverter extends AbstractConverter
      {
        ...
      }
      

      it would be nicer to indicate it as generic type

      @Component
      @Singleton
      public class ColorConverter extends AbstractConverter<Color>
      {
        ...
      }
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: