[ 
http://issues.ops4j.org/browse/PAXEXAM-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11735#action_11735
 ] 

Toni Menzel commented on PAXEXAM-5:
-----------------------------------

actually i think we go for a broader @Inject or alike annotation because:
1. have @BundleContext gets ugly when you have to use full qualified name 
because of nameclass with the real one (org.osgi..)
2. repeating "BundleContext" for name of annotaion and type looks not so nice

So, for now i do it with @Inject hunting for a better name.

> 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

Reply via email to