Sign in to Community
Sign in to view all badges
We have a OSGI Service (using R7 DS annotation). We are using OCD as innerclass within the service.
Also, we would like the component to read properties from the predefined sling:osgiconfig nodes in JCR.
Configuration policy is defined as required.
When the component/service load it goes into a "no config" state.
Need help to read these configs from sling:osgiConfig nodes.
Why do you want to read sling:OsgiConfig values inside OCD?
OCD is used to declare the OSGi config structure.
You can declare OCD the same as config values but in the end, the value will be read from the defined value in repository.