In this article we will explore ConfigurationAdmin interface. Service for administering configuration data.
ConfigurationAdmin is a dictionary of properties. To identify a target service’s dictionary use its PID.
Sharing as code snippet that reads “rootmapping.target” configuration of the OOTB “Day CQ Root Mapping” service.
When a target service’s configuration is updated, config details would also refresh in ConfigurationAdmin API. Thus, if you read configuration once updates are persisted, you would get the updated values. Example: if we access above servlet after updating the “rootmapping.target”, we would receive the updated value in logs.