felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-4621) bad injected bundle context when instances are defined using @Configuration
Date Wed, 27 Aug 2014 17:09:57 GMT

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

Clement Escoffier resolved FELIX-4621.

    Resolution: Invalid
      Assignee: Clement Escoffier

This is the default behavior.

If you need the instance's bundle context, use:

public MyComponent {
     * Injects the instance bundle context
    private BundleContext context;

> bad injected bundle context when instances are defined using @Configuration
> ---------------------------------------------------------------------------
>                 Key: FELIX-4621
>                 URL: https://issues.apache.org/jira/browse/FELIX-4621
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-runtime-1.12.0
>         Environment: Mac OS X
>            Reporter: Thomas Leveque
>            Assignee: Clement Escoffier
> When you define a component class in a bundle B1 and define instances in a bundle B2
using @Configuration annotation, the injected bundle context into the instance is B1 instead
of B2.

This message was sent by Atlassian JIRA

View raw message