multivalued osgi configuration | Community
Skip to main content
September 5, 2018
Solved

multivalued osgi configuration

  • September 5, 2018
  • 1 reply
  • 996 views

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.
Best answer by arunpatidar

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

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 5, 2018

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