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

                 Key: TAPESTRY-1331
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1331
             Project: Tapestry
          Issue Type: New Feature
          Components: tapestry-ioc
    Affects Versions: 5.0
            Reporter: Howard M. Lewis Ship


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to