felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierrick (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4646) @Context(Context.Source.INSTANCE) does not inject bundle context
Date Tue, 02 Dec 2014 13:38:12 GMT

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

Pierrick commented on FELIX-4646:
---------------------------------

Thanks

> @Context(Context.Source.INSTANCE) does not inject bundle context
> ----------------------------------------------------------------
>
>                 Key: FELIX-4646
>                 URL: https://issues.apache.org/jira/browse/FELIX-4646
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-runtime-1.12.0
>         Environment: JAVA 1.8
>            Reporter: Pierrick
>            Assignee: Clement Escoffier
>            Priority: Blocker
>             Fix For: ipojo-runtime-1.12.1
>
>
> I would like to use the bundle context for each instanciate of my bundle with this code
:
> @Context(Context.Source.INSTANCE)
>     private BundleContext _context;
> But the context return is null.
> If I use Context.Source.COMPONENT for the context definition, the context field is injected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message