public class SpringInitialContextFactory extends Object implements InitialContextFactory
Constructor and Description |
---|
SpringInitialContextFactory() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.beans.factory.BeanFactory |
createContext(org.springframework.core.io.Resource resource) |
Context |
getInitialContext(Hashtable environment) |
protected org.springframework.beans.factory.BeanFactory |
loadContext(org.springframework.core.io.Resource resource,
String key) |
static 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
|
public static Context makeInitialContext()
public Context getInitialContext(Hashtable environment) throws NamingException
getInitialContext
in interface InitialContextFactory
NamingException
protected org.springframework.beans.factory.BeanFactory loadContext(org.springframework.core.io.Resource resource, String key)
protected org.springframework.beans.factory.BeanFactory createContext(org.springframework.core.io.Resource resource)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.