I have created a sling:OsgiConfig node which is having a property paths of type String[]. I need to access this property in a java class. I want to make a method in java class that I would call from my JSP. I am doing this using taglib. I know we can achieve the same in JSP using the code below:
Configuration conf = sling.getService(org.osgi.service.cm.ConfigurationAdmin.class).getConfiguration("Name of the config");
String[] myProp = (String[]) conf.getProperties().get("propertyPath");
How can I do this in a Java class.
By : user972418