classpath: protocol handler. Provides access to classpath resources from your bundle or other bundles installed. |
Pax URL Classpath is an OSGi URL handler provides access to resources from thread classpath or all installed bundles or a specific bundle. The searched bundle are only those that are nnot protected by permissions.The resource is searched by:
classpath-uri := "claspath:" [ "//" bundle-symbolic-name "/" ] path-to-resource bundle-symbolic-name := <any> ; a valid bundle symbolic name from where the resource to be loaded path-to-resource := <any> ; path to the resources to be loaded |
Loads my-bundle.conf file by searching all the bundles installed.
classpath:my-bundle.conf |
Loads my-bundle.conf from the bundle with symbolic name my-bundle
classpath:my-bundle/my-bundle.conf |