[ http://issues.ops4j.org/browse/PAXEXAM-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11738#action_11738 ]
Alin Dreghiciu commented on PAXEXAM-5: -------------------------------------- Then, I suggest that we figure this out before releasing it. I want the next version of Pax Exam to have quite a stable API. I think that the @Inject is a good option and the cases explained by Edward we can complement it with extra info as: @Inject @Service(Foo.class) Foo foo; which can be simplified in case that the service type is the same as the type of the object to @Inject @Service Foo foo; > Allow bundlecontext injected on field basis > ------------------------------------------- > > Key: PAXEXAM-5 > URL: http://issues.ops4j.org/browse/PAXEXAM-5 > Project: Pax Exam > Issue Type: New Feature > Reporter: Edward Yakop > Assignee: Toni Menzel > Fix For: 0.3.0 > > > Currently you have to pass BundleContext in as a method parameter. It would > be nice to have a BundleContext annotation for a field like this: > public class SimpleTest > { > @BundleContext > private BundleContext context; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.ops4j.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general