org.springframework.mock.jndi |
The simplest implementation of the JNDI SPI that could possibly work.
Useful for setting up a simple JNDI environment for test suites
or standalone applications. If e.g. JDBC DataSources get bound to the
same JNDI names as within a J2EE container, both application code and
configuration can me reused without changes.
|
Java Source File Name | Type | Comment |
ExpectedLookupTemplate.java | Class | Simple implementation of JndiTemplate interface that always returns
a given object. |
SimpleNamingContext.java | Class | 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.
This class is not intended for direct usage by applications, although it
can be used for example to override JndiTemplate's createInitialContext
method in unit tests. |
SimpleNamingContextBuilder.java | Class | Simple implementation of a JNDI naming context builder.
Mainly targeted at test environments, where each test case can
configure JNDI appropriately, so that new InitialContext()
will expose the required objects. |