Methods Summary |
---|
public static javax.naming.Context | create(javax.naming.Context parent)
NamingServer srv = new NamingServer();
return new NamingContext(parent.getEnvironment(), null, srv);
|
public java.lang.Object | getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
Context ctx = enc.get();
return ctx;
|
public static void | pop()
LinkedList<Context> currentStack = stack.get();
if (currentStack == null)
{
enc.set(null);
return;
}
if (currentStack.size() == 0)
{
enc.set(null);
return;
}
Context previous = currentStack.removeLast();
enc.set(previous);
|
public static void | push(javax.naming.Context ctx)
if (enc.get() == null)
{
enc.set(ctx);
return;
}
LinkedList<Context> currentStack = stack.get();
if (currentStack == null)
{
currentStack = new LinkedList<Context>();
stack.set(currentStack);
}
currentStack.addLast(enc.get());
enc.set(ctx);
|