You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2013/09/04 19:36:51 UTC

[jira] [Commented] (FELIX-4216) Allow @Property without name in constructors

    [ https://issues.apache.org/jira/browse/FELIX-4216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13758005#comment-13758005 ] 

Clement Escoffier commented on FELIX-4216:
------------------------------------------

Fixed in trunk
                
> Allow @Property without name in constructors
> --------------------------------------------
>
>                 Key: FELIX-4216
>                 URL: https://issues.apache.org/jira/browse/FELIX-4216
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: ipojo-runtime-1.10.1
>            Reporter: Clement Escoffier
>            Assignee: Clement Escoffier
>             Fix For: ipojo-runtime-1.10.2
>
>
> @Property can be used to inject properties within constructor parameters. However, they currecntly require a name:
>     public FooImpl(@Property(name="message") String message) { ... }
> The name attribute should not be required. By relying on FELIX-4215, we should be able to infere the property's name from the parameter name.
> For example,
>     public FooImpl(@Property String message) { ... }
> would be equivalent to the previous snippet.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira