I have created a node of type sling:OsgiConfig and have inserted a property 'propertyPath' which is of type String. I can access this in my component JSP using:
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 the same 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. How can I achieve the same thing in the method that I am going to write.
Thanks in advance,