org.apache.aries.jndi.legacy.support
Class LegacyInitialContextFinder

java.lang.Object
  extended by org.apache.aries.jndi.legacy.support.LegacyInitialContextFinder
All Implemented Interfaces:
InitialContextFactoryBuilder

public class LegacyInitialContextFinder
extends Object
implements InitialContextFactoryBuilder

Some OSGi based server runtimes, such as jetty OSGi and virgo rely on the thread context classloader to make their JNDI InitialContextFactory's available in OSGi, rather than relying on the OSGi JNDI spec. This is a little bizare, but perhaps is just a point in time statement. In any case to support them using Aries JNDI we have this ICFB which uses the Thread context classloader. We don't ship it in the jndi uber bundle because it is only for these runtimes which haven't caught up with the latest OSGi specs. Normally we want to enourage the use of the OSGi spec, but this is a backstop for those wanting to use Aries JNDI and one of these runtimes.


Constructor Summary
LegacyInitialContextFinder()
           
 
Method Summary
 InitialContextFactory createInitialContextFactory(Hashtable<?,?> environment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyInitialContextFinder

public LegacyInitialContextFinder()
Method Detail

createInitialContextFactory

public InitialContextFactory createInitialContextFactory(Hashtable<?,?> environment)
                                                  throws NamingException
Specified by:
createInitialContextFactory in interface InitialContextFactoryBuilder
Throws:
NamingException


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.