Tapestry
  1. Tapestry
  2. TAPESTRY-1446

@Symbol annotation for injecting a specific symbol

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.5
    • Component/s: tapestry-ioc
    • Labels:
      None

      Description

      It would be nice to have an @Symbol anntotation that is similar to @Value except that the value annotation would be a symbol name (rather than an expansion). This would support cases where a constant is defined, i.e.:

      @Inject @Symbol(InternalConstants.TAPESTRY_ALIAS_MODE_SYMBOL)

      vs.

      @Inject @Value("$

      {tapestry.alias-mode}

      ")

      The latter is more prone to typos that can only be detected at runtime.

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        Fix was mixed into another bug (TAPESTRY-1369).

        Show
        Howard M. Lewis Ship added a comment - Fix was mixed into another bug ( TAPESTRY-1369 ).

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development