You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2022/07/19 17:02:45 UTC
[brooklyn-docs] 01/02: improve bundle osgi classloading instructions
This is an automated email from the ASF dual-hosted git repository.
heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-docs.git
commit e37f45ca59a354b26d03418a084e9af670f371e0
Author: Alex Heneveld <al...@cloudsoft.io>
AuthorDate: Tue Jul 19 18:02:09 2022 +0100
improve bundle osgi classloading instructions
---
guide/blueprints/catalog/bundle.md | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/guide/blueprints/catalog/bundle.md b/guide/blueprints/catalog/bundle.md
index c6525770..b6b27f48 100644
--- a/guide/blueprints/catalog/bundle.md
+++ b/guide/blueprints/catalog/bundle.md
@@ -24,7 +24,14 @@ which will be searched if a blueprint in one bundle references resources from an
Resources in the bundle can be referenced from the `catalog.bom` by using
the `classpath:` URL protocol, as in `classpath://path/to/script.sh`.
-This can also be used to load resources in explicitly declared dependent bundles.
+This can also be used to load resources in explicitly declared dependent bundles,
+using `classpath:bundle:version:/path/to/file.sh`;
+if omitted, typically the bundle of the entity resolving the link will be searched
+along with its OSGi dependencies and `brooklyn.library` dependencies.
+(This means if you define an entity type in a bundle, resources in that bundle
+will be found automatically, but if your bundle defines a composite blueprint
+referencing other types as children, those children will _not_ automatically
+search your bundle and a reference will be needed.)
### Example