public class MemoryContextFactory extends ContextFactory implements InitialContextFactory
MemoryContext. Note the difference to SimpleJndiContextFactory. Here an empty context is returned. No sub contexts or JNDI objects are initialized from sub directories or property files under a root directory. The org.osjava.sj.root property may even not be set.| Modifier and Type | Field and Description |
|---|---|
private static ConcurrentHashMap<String,Context> |
contextsByRoot |
| Constructor and Description |
|---|
MemoryContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
clearCache()
package-private: Only for Testing!
|
Context |
getInitialContext(Hashtable environment) |
initializeStandardJndiEnvironment, overwriteEnvironmentWithSystemPropertiesprivate static final ConcurrentHashMap<String,Context> contextsByRoot
public Context getInitialContext(Hashtable environment) throws NamingException
getInitialContext in interface InitialContextFactoryNamingExceptionInitialContextFactory.getInitialContext(Hashtable)static void clearCache()
Copyright © 2020. All rights reserved.