Gemini Naming
OSGi JNDI Services Specification  Specifies a service-based approach to provding JNDI services Handles services coming up and down Supports legacy services  e.g. Existing LDAP, COS, RMI, DNS services are supported
Singletons for ObjectFactoryBuilder and InitialContextFactoryBuilder to allow overriding Allows use of standard JNDI API Careful: “Lifecycle mismatch” Special handling of URLs URL-based way of looking up OSGi services
JNDIContextManager org.osgi.service.jndi.JNDIContextManager service newInitialContext()/newInitialContext(Map)
newDirectoryContext()/newDirectoryContext(Map) Search for matching InitialContextFactory services and return a wrapped version of them
If no appropriate InitialContextFactory found, search for appropriate InitialContextFactoryFactoryBuilder services.
JNDIProviderAdmin Conversion between references and objects
org.osgi.service.jndi.JNDIProviderAdmin service getObjectInstance() methods Search for ObjectFactory services the are appropriate

EclipseCon 2011-Gemini Naming