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

Add support for generic types in properties converters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2-milestone-1
    • Component/s: Properties
    • Labels:
      None
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: