You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2015/09/23 15:21:54 UTC

svn commit: r1704845 - /sling/site/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.mdtext

Author: bdelacretaz
Date: Wed Sep 23 13:21:53 2015
New Revision: 1704845

URL: http://svn.apache.org/viewvc?rev=1704845&view=rev
Log:
SLING-5040 - mention getService LDAP filters

Modified:
    sling/site/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.mdtext

Modified: sling/site/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.mdtext?rev=1704845&r1=1704844&r2=1704845&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.mdtext Wed Sep 23 13:21:53 2015
@@ -56,6 +56,11 @@ collects the results and uninstalls the
 very small, and both the client-side and server-side parts of the test can be debugged easily
 with the appropriate IDE settings.
 
+The `Teleporter.getService` method takes an optional OSGi LDAP filter for service
+selection, like for example:
+
+  final StringTransformer t = teleporter.getService(StringTransformer.class, "(mode=uppercase)");
+
 This teleporter mechanism is used in our integration tests, search for `TeleporterRule` in there
 for examples or look at the 
 [`integrationtest.teleporter`]( https://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/teleporter)