Hi all,

I have been running the Apache Felix Metatype Service implementation
through the OSGi CT and found an issue with the
ObjectClassDefinition.getIcon method. The icon is defined in the
metatype resource file (e.g. metatype.xml) in an Icon element declaring
the (localizable) location and the size.

Now, the getIcon(int) method is defined to return an icon of the desired
size or null if no such icon exists. In addtion it is stated: "The
returned icon maybe larger or smaller than the indicated size." (OSGi
Compendium R4.2, Section 105.13.6.6)

Thus the Apache Felix getIcon(int) implementation returns either an icon
declared with the exact desired size or and icon whose declared size is
smaller than the desired size.

The CT expects the getIcon(int) method to only return an icon if one is
declared for the exact size.

So, which is the intended behaviour of the getIcon(int) method ?

Should it return an icon only if an icon with the exact desired size
exists ?

Is the cited sentence does intended to indicate that the actual Icon
data may result in a different size as has been declared ?

Thanks for any help.

Regards
Felix
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to