I do get this part and can configure this within the activate method and update the properties. But this is a http whiteboard to specify the osgi.http.whiteboard.resource.pattern for static resource. Normally the class is empty and just has a pattern and prefix configured.
Alain On Thu, Sep 6, 2018 at 4:00 PM Thomas Watson via osgi-dev < [email protected]> wrote: > Or you can do this > > static final String BSN = > FrameworkUtil.getBundle(MyClass.class).getSymbolicName(); > > Tom > > > > > ----- Original message ----- > From: BJ Hargrave via osgi-dev <[email protected]> > Sent by: [email protected] > To: [email protected], [email protected] > Cc: > Subject: Re: [osgi-dev] Getting bundle symbolic name in Component property > annotation > Date: Thu, Sep 6, 2018 1:11 PM > > No. But you can get that from BundleContext which you can have injected. > > > -- > > BJ Hargrave > Senior Technical Staff Member, IBM // office: +1 386 848 1781 > OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788 > [email protected] > > > > ----- Original message ----- > From: Alain Picard via osgi-dev <[email protected]> > Sent by: [email protected] > To: [email protected] > Cc: > Subject: [osgi-dev] Getting bundle symbolic name in Component property > annotation > Date: Thu, Sep 6, 2018 1:57 PM > > Is there a pre-defined constant or character like the $ for PID that can > be used to compose a component property and inject the bundle symbolic name? > > Thanks > Alain > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev > > > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev > > > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
