Skip to main content
rajeev6969
Level 2
Oct 16, 2015 2:29 AM UTC
Solved

osgi component metatype service data use?

Hi,

I want to understand the use of metatype for component. I understand, if we keep it true than it will generate metatype.xml else it would not. But what is the advantage of keeping data in this xml? Is there any added feature that we get because of this or does it have any advantage over not having metatype as true. Also, what are the scenarios where we should look to generate metatype.xml and where we should avoid.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Hi,

the most obvious thing is, that when you have "metatype=true" in your @Component annotation, this component/service shows up with its properties in the Sling webconsole in the "Configuration" page (/system/console/configmgr).

kind regards,
Jörg

3 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Hi,

the most obvious thing is, that when you have "metatype=true" in your @Component annotation, this component/service shows up with its properties in the Sling webconsole in the "Configuration" page (/system/console/configmgr).

kind regards,
Jörg

Translate
Lokesh_Shivalingaiah
Level 10
Oct 16, 2015 2:29 AM UTC

it just enables another option to edit the metadata of a bundle.

[1] would give a little insight to it

[1] http://blog.osgi.org/2011/03/metatypes.html

Translate
smacdonald2008
Level 10
Oct 16, 2015 2:29 AM UTC