You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by LongkerDandy <lo...@gmail.com> on 2010/09/27 09:53:47 UTC

Inject BundleContext with BluePrint

Hi

How to inject a BundleContext by blueprint?
I couldn't find a sample for it.

Regards
LongkerDandy

RE: Inject BundleContext with BluePrint

Posted by Timothy Ward <ti...@hotmail.com>.
And if you're after an example:

<bean id="injectedBundleContext" class="Foo">
    <property name="context" ref="blueprintBundleContext"/>
</bean>

You may also access the Bundle object for the blueprint bundle using the "blueprintBundle" bean, the BlueprintContainer service using the "blueprintContainer" bean and the built in blueprint converter service using the "blueprintConverter" bean.

Regards,

Tim

________________________________
> From: luke@code-house.org
> To: aries-user@incubator.apache.org
> Subject: RE: Inject BundleContext with BluePrint
> Date: Mon, 27 Sep 2010 10:27:55 +0200
>
>
> Hi,
>
> You have predefined variable accessible In XML configuration named
> blueprintBundleContext.
>
>
>
> Best regards,
>
> Lukasz
>
>
>
> From: LongkerDandy [mailto:longkerdandy@gmail.com]
> Sent: Monday, September 27, 2010 9:54 AM
> To: aries-user@incubator.apache.org
> Subject: Inject BundleContext with BluePrint
>
>
>
> Hi
>
> How to inject a BundleContext by blueprint?
> I couldn't find a sample for it.
>
> Regards
> LongkerDandy
 		 	   		  

RE: Inject BundleContext with BluePrint

Posted by Łukasz Dywicki <lu...@code-house.org>.
Hi,

You have predefined variable accessible In XML configuration named blueprintBundleContext.

 

Best regards,

Lukasz

 

From: LongkerDandy [mailto:longkerdandy@gmail.com] 
Sent: Monday, September 27, 2010 9:54 AM
To: aries-user@incubator.apache.org
Subject: Inject BundleContext with BluePrint

 

Hi

How to inject a BundleContext by blueprint?
I couldn't find a sample for it.

Regards
LongkerDandy