public class SimpleNamingContext implements Context(Code)
Simple implementation of a JNDI naming context.
Only supports binding plain Objects to String names.
Mainly for test environments, but also usable for standalone applications.
SimpleNamingContext(String root, Hashtable boundObjects, Hashtable environment) Create a new naming context with the given naming root,
the given name/object map, and the JNDI environment entries.
Bind the given object to the given name.
Note: Not intended for direct use by applications
if setting up a JVM-level JNDI environment.
Use SimpleNamingContextBuilder to set up JNDI bindings then.
See Also:org.springframework.mock.jndi.SimpleNamingContextBuilder.bind
Look up the object with the given name.
Note: Not intended for direct use by applications.
Will be used by any standard InitialContext JNDI lookups.
throws: javax.naming.NameNotFoundException - if the object could not be found