Tapestry
  1. Tapestry
  2. TAPESTRY-1331

Need an @InjectValue annotation for cases where a value to insert contains a colon

    Details

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

      Description

      If a value (not a service) to be injected into a method is a string that contains a colon (':') character, it will be interpreted as a object provider expression (i.e., such as "service:foo" or "infrastructure:bar"). If the value is a JDBC or other URL, the scheme ("http:") will be interpretted as a object provider prefix, resulting in an exception.

      Either @Inject needs an attribute for this case (i..e, literal=true), or there needs to be a secondary annotation, @InjectValue, for this case.

      Hiding the URL inside a symbol, i.e., @Inject("$

      {mysymbol}") doesn't work, because ${mysymbol}

      is expanded before the check for the colon.

        Issue Links

          Activity

          Howard M. Lewis Ship created issue -
          Howard M. Lewis Ship made changes -
          Field Original Value New Value
          Link This issue is part of TAPESTRY-1387 [ TAPESTRY-1387 ]
          Hide
          Howard M. Lewis Ship added a comment -

          Added a @Value annotation that works in concert with @Inject for this purpose.

          Show
          Howard M. Lewis Ship added a comment - Added a @Value annotation that works in concert with @Inject for this purpose.
          Howard M. Lewis Ship made changes -
          Assignee Howard M. Lewis Ship [ hlship ]
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 5.0.4 [ 12312381 ]
          Mark Thomas made changes -
          Workflow jira [ 12399109 ] Default workflow, editable Closed status [ 12569187 ]
          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12569187 ] jira [ 12592121 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          22d 7h 12m 1 Howard M. Lewis Ship 31/Mar/07 05:22

            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