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:14:13 UTC
[jira] [Created] (FELIX-3933) iPOJO: inject all constructor
parameters
Daan de Wit created FELIX-3933:
----------------------------------
Summary: 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