multivalued osgi configuration | Community
Skip to main content
Level 4
Sep 5, 2018 10:06 AM UTC
Solved

multivalued osgi configuration

hi,

i am working on osgi custom configuration.

but i want to use same service multiple times like we have same format for jdbc configuration and we provide multiple db configs.

is it possible to create custom multivalued configuration ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 5, 2018 10:26 AM UTC

Hi,

I believe you are using osgi annotations, then you can do it like below

@Designate(ocd = DemoConfig.class,factory=true)

https://osgi.org/javadoc/r6/cmpn/org/osgi/service/metatype/annotations/Designate.html

Arun Patidar

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Sep 5, 2018 10:26 AM UTC

Hi,

I believe you are using osgi annotations, then you can do it like below

@Designate(ocd = DemoConfig.class,factory=true)

https://osgi.org/javadoc/r6/cmpn/org/osgi/service/metatype/annotations/Designate.html

Translate
Arun Patidar