You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Daan de Wit (JIRA)" <ji...@apache.org> on 2013/02/26 15:16:15 UTC

[jira] [Updated] (FELIX-3933) iPOJO: inject all constructor parameters

     [ https://issues.apache.org/jira/browse/FELIX-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daan de Wit updated FELIX-3933:
-------------------------------

    Description: 
It would be nice to be have an annotation on a constructor that will cause all parameters of that constructor to be injected by iPOJO (like @Inject).
Example:
{code:java}
public MyService(@Requires ServiceA serviceA, @Requires ServiceB serviceB) {/*...*/}
{code}
will become:
{code:java}
@Requires // or @Inject
public MyService(ServiceA serviceA, ServiceB serviceB) {/*...*/}
{code}

  was:
It would be nice to be have an annotation on a constructor that will cause all parameters of that constructor to be injected by iPOJO (like @Inject).
Example:
{code=java}
public MyService(@Requires ServiceA serviceA, @Requires ServiceB serviceB) {/*...*/}
{code}
will become:
{code=java}
@Requires // or @Inject
public MyService(ServiceA serviceA, ServiceB serviceB) {/*...*/}
{code}

    
> iPOJO: inject all constructor parameters
> ----------------------------------------
>
>                 Key: FELIX-3933
>                 URL: https://issues.apache.org/jira/browse/FELIX-3933
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>            Reporter: Daan de Wit
>
> It would be nice to be have an annotation on a constructor that will cause all parameters of that constructor to be injected by iPOJO (like @Inject).
> Example:
> {code:java}
> public MyService(@Requires ServiceA serviceA, @Requires ServiceB serviceB) {/*...*/}
> {code}
> will become:
> {code:java}
> @Requires // or @Inject
> public MyService(ServiceA serviceA, ServiceB serviceB) {/*...*/}
> {code}

--
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