org.mule.config.spring.jndi
Class SpringInitialContextFactory

java.lang.Object
  extended by org.mule.config.spring.jndi.SpringInitialContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

public class SpringInitialContextFactory
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory

TODO


Constructor Summary
SpringInitialContextFactory()
           
 
Method Summary
protected  org.springframework.beans.factory.BeanFactory createContext(org.springframework.core.io.Resource resource)
           
 javax.naming.Context getInitialContext(java.util.Hashtable environment)
           
protected  org.springframework.beans.factory.BeanFactory loadContext(org.springframework.core.io.Resource resource, java.lang.String key)
           
static javax.naming.Context makeInitialContext()
          A factory method which can be used to initialise a singleton JNDI context from inside a Spring.xml such that future calls to new InitialContext() will reuse it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringInitialContextFactory

public SpringInitialContextFactory()
Method Detail

makeInitialContext

public static javax.naming.Context makeInitialContext()
A factory method which can be used to initialise a singleton JNDI context from inside a Spring.xml such that future calls to new InitialContext() will reuse it


getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable environment)
                                       throws javax.naming.NamingException
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Throws:
javax.naming.NamingException

loadContext

protected org.springframework.beans.factory.BeanFactory loadContext(org.springframework.core.io.Resource resource,
                                                                    java.lang.String key)

createContext

protected org.springframework.beans.factory.BeanFactory createContext(org.springframework.core.io.Resource resource)


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.