I have a component with properties as follows.
@Component(immediate = true, metatype = true, label = "Conf Details")
@Service(value = { LocationConfigurationUtil.class })
@Properties({
@Property(label = "location blueprint", name = "locationPath", value = "", description = "..."),
@Property(label = "location page template", name = "locationTemplate", value = "", description = "..."),
@Property(label = "basepath live copies", name = "liveCopyRoot", value = "/content/WebRoot", description = "...") })
public class LocationConfigurationUtil {
@Activate
protected void activate(Map<String, Object> mapCreated) {
// some code
}
}
To make it editable properties in a jcr node, I used a non-standard method. I created sling:OsgiConfig
in path /apps/system/config
having properties declared in java code, which is working fine.
But if I just have the same sling:OsgiConfig
inside /etc/myapp/myconfig
, it does not work.
/etc/system/config/
, after adding/etc:300
. But inside folder/etc/myapp/myconfig
still not working. – Bursar