|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.naming.InitialContext
org.mockcentral.server.MockCentralTestingContext
public class MockCentralTestingContext
A lightweight extension of the javax.naming.InitialContext
class, using a HashMap to bind lookup names to proxy Objects for
the application.
| Field Summary |
|---|
| Fields inherited from class javax.naming.InitialContext |
|---|
defaultInitCtx, gotDefault, myProps |
| Fields inherited from interface javax.naming.Context |
|---|
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
| Constructor Summary | |
|---|---|
MockCentralTestingContext()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
bind(java.lang.String name,
java.lang.Object object)
Puts the supplied Object into the map of bound objects keyed to the supplied name. |
java.lang.Object |
lookup(java.lang.String name)
Returns the Object stored in the map of bound Objects under the supplied name. |
void |
reset()
Clears the map of bound Objects. |
| Methods inherited from class javax.naming.InitialContext |
|---|
addToEnvironment, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, doLookup, doLookup, getDefaultInitCtx, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getURLOrDefaultInitCtx, getURLOrDefaultInitCtx, init, list, list, listBindings, listBindings, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockCentralTestingContext()
throws javax.naming.NamingException
javax.naming.NamingException - per the superclass Constructor.| Method Detail |
|---|
public void bind(java.lang.String name,
java.lang.Object object)
throws javax.naming.NamingException
bind in interface javax.naming.Contextbind in class javax.naming.InitialContextname - the key under which to store the Object.object - the Object to store.
javax.naming.NamingException - per the interface method signature.public java.lang.Object lookup(java.lang.String name)
lookup in interface javax.naming.Contextlookup in class javax.naming.InitialContextname - the key to use to get the Object from the map.
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||