concept url context factory in category osgi

This is an excerpt from Manning's book OSGi in Depth.
For example, consider the case where you’ve created an InitialContext for LDAP. As you’ve learned, this InitialContext is a proxy; that is, it’s being backed up by the proper LDAP provider. While working with LDAP names, suppose you sometimes also need to look up objects from some other registry, such as myScheme. Instead of creating a new InitialContext, specifying that a myScheme backed up InitialContextFactory, JNDI allows you to register a special ObjectFactory, called the URL context factory. The InitialContext invokes the URL context factory when a lookup is done using a URL. The URLContextFactory checks to see if the scheme of the URL is that of myScheme, and if it is, returns a JNDI Context. Then this Context is used to perform the actual lookup of the original Name. In other words, a URL context factory is an ObjectFactory that provides a Context to a different naming or directory service.
URL context factories implement the ObjectFactory interface, so OSGi treats them as such, and you can register your URL context factory as an ObjectFactory service in the OSGi registry. The one difference is that you should include the service property osgi.jndi.url.scheme, whose value must be set to the URL scheme. For example, to handle the URL osgi:service/javax.sql.DataSource, this property should be set to osgi.