Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-919

Provide TypeLiteral class similar to javax.enterprise.util.TypeLiteral

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.2
    • lang.reflect.*
    • None

    Description

      This is more or less a necessity for thorough typesafe APIs that handle more than just Class types, and IMO clearly falls within the mandate of Commons Lang to provide the items that are "missing" from the JDK. The suggested patch also includes a Typed interface that generalizes TypeLiteral in an extensible way.

      Attachments

        1. LANG-919.patch.txt
          7 kB
          Matthew Jason Benson

        Activity

          Intended for inclusion, attaching here for RTC purposes.

          mbenson Matthew Jason Benson added a comment - Intended for inclusion, attaching here for RTC purposes.
          bayard Henri Yandell added a comment -

          Could you put an example in the main javadoc?

          Being a committer of little brain, I'm not sure how I'd use this.

          bayard Henri Yandell added a comment - Could you put an example in the main javadoc? Being a committer of little brain, I'm not sure how I'd use this.

          Done:

          Committed revision 1531968.

          mbenson Matthew Jason Benson added a comment - Done: Committed revision 1531968.

          People

            mbenson Matthew Jason Benson
            mbenson Matthew Jason Benson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: