Bundle Resources (extensions.bundleresource)Page added by Mike MuellerBundle ResourcesIntroductionThe Bundle Resource Provider provides access to files/directories included in a OSGi bundle through the Sling ResourceResolver. Resource TypesFiles and directories are mapped into the resource tree as regular Resource instances whose resource type depends on the actual nature of the mapped resource:
AdaptersFilesystem resources extend from Sling's AbstractResource class and thus are adaptable to any type for which an AdapterFactory is registered supporting bundle resources. In addition BundleResource support the following adapters natively:
ConfigurationProviding bundles have a Bundle manifest header Sling-Bundle-Resources containing a list of absolute path prefixes provided by the bundle and the correspondent path in the resource tree. The two path are separated by comma or whitespace (SP, TAB, VTAB, CR, LF), the list entries are separated by semicolon. Example (manifest.mf):
...
Sling-Bundle-Resources: /libs/sling/explorer,
/libs/sling/servlet/default/explorer
...
Change Notification Preferences
View Online
|
Add Comment
|
- [CONF] Apache Sling Website > Bundle Resources (extensions.b... confluence
