You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2017/11/23 08:45:00 UTC

[jira] [Updated] (ARIES-1761) ensure we inject BundleContext to the beans which need it

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

Freeman Fang updated ARIES-1761:
--------------------------------
    Attachment: ARIES-1761.patch

a patch is attached

> ensure we inject BundleContext to the beans which need it
> ---------------------------------------------------------
>
>                 Key: ARIES-1761
>                 URL: https://issues.apache.org/jira/browse/ARIES-1761
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: blueprint-spring-0.5.0
>            Reporter: Freeman Fang
>         Attachments: ARIES-1761.patch
>
>
> With the old spring-dm, there's a "BundleContextAware" interface, any bean implements this interface can get BundleContext injected.
> With the new aries-blueprint-spring, we should follow similar pattern, like check if a bean has setBundleContext method, if so, just inject the BundleContext into the bean, so that the application bundles with work with spring-dm can also work with aries-blueprint-spring



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)