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?ThanksAlain_______________________________________________
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
