Top Fields Constructors Methods
ch.qos.logback.core.testUtil

public Class MockInitialContext

extends InitialContext
Class Inheritance
Imports
java.util.HashMap, .Map, javax.naming.InitialContext, .NamingException

Field Summary

Modifier and TypeField and Description
public Map<String, Object>
Inherited from javax.naming.InitialContext:
defaultInitCtxgotDefaultmyProps

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
lookup(String
the name of the object to look up
name
)

Overrides javax.naming.InitialContext.lookup.

Implements javax.naming.Context.lookup.

Retrieves the named object.
Inherited from javax.naming.InitialContext:
addToEnvironmentbindbindclosecomposeNamecomposeNamecreateSubcontextcreateSubcontextdestroySubcontextdestroySubcontextdoLookupdoLookupgetDefaultInitCtxgetEnvironmentgetNameInNamespacegetNameParsergetNameParsergetURLOrDefaultInitCtxgetURLOrDefaultInitCtxinitlistlistlistBindingslistBindingslookuplookupLinklookupLinkrebindrebindremoveFromEnvironmentrenamerenameunbindunbind

Field Detail

mapback to summary
public Map<String, Object> map

Constructor Detail

MockInitialContextback to summary
public MockInitialContext() throws NamingException

Method Detail

lookupback to summary
public Object lookup(String name) throws NamingException

Overrides javax.naming.InitialContext.lookup.

Implements javax.naming.Context.lookup.

Doc from javax.naming.Context.lookup.

Retrieves the named object. See lookup(Name) for details.

Parameters
name:String

the name of the object to look up

Returns:Object

the object bound to name

Annotations
@Override
Exceptions
NamingException:
if a naming exception is encountered