OSGI Configuration || R6 annotations | Community
Skip to main content
Level 2
Sep 10, 2018 10:10 AM UTC
Solved

OSGI Configuration || R6 annotations

Can we have a multifield property in OSGi. For e.g.

I have 2 properties A and B. And when i click on Plus i gotta configure both A and B.(Something similar that we do in AEM dialog multifield property).

So basically my A and b property are related so i want to configure different combinations of A and B.

#Note- I can achieve this using factory configs. Is there i can achieve this without using factory configs.

Thanks

Anupam

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 10, 2018 12:43 PM UTC

Hi,

R6 annotations allowed only few types defined at https://osgi.org/javadoc/r6/cmpn/org/osgi/service/metatype/annotations/AttributeType.html

and there is no way to create multifield property like dialog but for single option multiple properties can be created.

Using OSGi annotations (>= AEM6.2) - Experience Delivers

Arun Patidar

2 replies

smacdonald2008
Level 10
Sep 10, 2018 1:33 PM UTC

As Arun states - there is no way to define a multifield property on DS OSGi.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 10, 2018 12:43 PM UTC

Hi,

R6 annotations allowed only few types defined at https://osgi.org/javadoc/r6/cmpn/org/osgi/service/metatype/annotations/AttributeType.html

and there is no way to create multifield property like dialog but for single option multiple properties can be created.

Using OSGi annotations (>= AEM6.2) - Experience Delivers

Translate
Arun Patidar