Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.0
-
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.
Attachments
Issue Links
- is part of
-
TAPESTRY-1387 @Inject should expose annotations on the field to the ObjectProvider
- Closed