|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.configuration.MockInitialContextFactory
public class MockInitialContextFactory
A mock implementation of the InitialContextFactory interface.
This implementation will return a mock context that contains some test data.
| Field Summary | |
|---|---|
static java.lang.String |
PROP_CYCLES
Constant for the use cycles environment property. |
| Constructor Summary | |
|---|---|
MockInitialContextFactory()
|
|
| Method Summary | |
|---|---|
javax.naming.Context |
getInitialContext(java.util.Hashtable env)
Creates a Context object that is backed by a mock object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROP_CYCLES
| Constructor Detail |
|---|
public MockInitialContextFactory()
| Method Detail |
|---|
public javax.naming.Context getInitialContext(java.util.Hashtable env)
throws javax.naming.NamingException
Context object that is backed by a mock object.
The mock context can be queried for the values of certain test
properties. It also supports listing the contained (sub) properties.
getInitialContext in interface javax.naming.spi.InitialContextFactoryenv - the environment
javax.naming.NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||