You used Bundle.getHeaders(String locale) [1] Both Bundle.getHeaders methods return a Dictionary.
You need to call bundle.getHeaders().get(Constants.REQUIRE_BUNDLE) [1] http://www2.osgi.org/javadoc/r4/org/osgi/framework/Bundle.html#getHeaders(java.lang.String) BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance [EMAIL PROTECTED] office: +1 386 848 1781 mobile: +1 386 848 3788 "Bin Conan" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03/01/2007 02:48 PM Please respond to OSGi Developer Mail List <[email protected]> To OSGi Developer Mail List <[email protected]> cc Subject [osgi-dev] Get list of required bundles of one specific bundle? Dear all, I would like to ask you how to get a list of all required bundles of one particular bunlde? I have gave a try with bundle.getHeaders(Constants.REQUIRE_BUNDLE) but I did not succeed to achieve an expected result. In the R4 Specification, bundle.getHeaders(REQUIRE_BUNDLE) is claimed to return list of required bundles symbolic name but I acquired the absolutely different result. I am using Knopflerfish and I do not know if bundle.getHeaders(REQUIRE_BUNDLE) can be performed correctly in the platform or not. Any suggestion? Many thanks in advance. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
