You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2022/08/24 11:49:45 UTC

[sling-org-apache-sling-resource-presence] 04/04: add link, fix typo and improve code example

This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resource-presence.git

commit df4576f6863f7baef501ec539d3f784fc9c280e5
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Wed Aug 24 13:37:54 2022 +0200

    add link, fix typo and improve code example
---
 README.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 9aeb1af..720ff0d 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
 
 This module is part of the [Apache Sling](https://sling.apache.org) project.
 
-This module creates proxy OSGi services that are registered only if specific resources are present.
+This module creates proxy OSGi services that are registered only if specific [resources](https://sling.apache.org/documentation/the-sling-engine/resources.html) are present.
 
 Like for example:
 
@@ -14,7 +14,7 @@ Like for example:
 	private ResourcePresence barIsPresent;
 	
 The `barIsPresent` service is registered only if the `/content/foo/bar` resource is present, allowing OSGi
-components to be dependent on the presence of specific Resources.
+components to be dependent on the presence of specific resources.
 
 This is mostly meant for testing, to wait for test content before running specific tests.
 
@@ -45,12 +45,12 @@ When running tests with resources involved, you can use a resource presence to d
 
     @Configuration
     public Option[] configuration() {
-        return new Option[]{
+        return options(
             [...],
             factoryConfiguration("org.apache.sling.resource.presence.internal.ResourcePresenter")
                 .put("path", "/apps")
                 .asOption()
-        };
+        );
     }
 
     @Test