aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <>
Subject [jira] [Comment Edited] (ARIES-1761) ensure we inject BundleContext to the beans which need it
Date Tue, 16 Jan 2018 17:11:00 GMT


Guillaume Nodet edited comment on ARIES-1761 at 1/16/18 5:10 PM:

I'm not sure to understand the purpose.

The interface javadoc specifies that in most cases, beans should not need to implement this
interface.  Furthermore, if a bean actually implements it, we'd need to also provide the
class else an NoClassDefFoundException would be thrown.

was (Author: gnt):

> ensure we inject BundleContext to the beans which need it
> ---------------------------------------------------------
>                 Key: ARIES-1761
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: blueprint-spring-0.5.0
>            Reporter: Freeman Fang
>            Priority: Major
>         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

View raw message