final Object resolvedObject = resolveResult.getResolvedObj();
public Object lookup(String name) throws NamingException { ResolveResult res = getRootURLContext(name, myEnv); Context ctx = (Context)res.getResolvedObj(); try { return ctx.lookup(res.getRemainingName()); } finally { ctx.close(); } }
@Override public void bind(String name, Object obj) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context context = (Context) res.getResolvedObj(); try { context.bind(res.getRemainingName(), obj); } finally { context.close(); } }
@Override public void unbind(String name) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context context = (Context) res.getResolvedObj(); try { context.unbind(res.getRemainingName()); } finally { context.close(); } }
@Override public void rebind(String name, Object obj) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context context = (Context) res.getResolvedObj(); try { context.rebind(res.getRemainingName(), obj); } finally { context.close(); } }
public void bind(String name, Object obj) throws NamingException { ResolveResult res = getRootURLContext(name, myEnv); Context ctx = (Context)res.getResolvedObj(); try { ctx.bind(res.getRemainingName(), obj); } finally { ctx.close(); } }
public void rebind(String name, Object obj) throws NamingException { ResolveResult res = getRootURLContext(name, myEnv); Context ctx = (Context)res.getResolvedObj(); try { ctx.rebind(res.getRemainingName(), obj); } finally { ctx.close(); } }
private static Object getUsingURL(String url, Hashtable<?,?> env) throws NamingException { ResolveResult res = getUsingURLIgnoreRest(url, env); Context ctx = (Context)res.getResolvedObj(); try { return ctx.lookup(res.getRemainingName()); } finally { ctx.close(); } }
@Override public Object lookup(String name) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context context = (Context) res.getResolvedObj(); try { return context.lookup(res.getRemainingName()); } finally { context.close(); } }
public void unbind(String name) throws NamingException { ResolveResult res = getRootURLContext(name, myEnv); Context ctx = (Context)res.getResolvedObj(); try { ctx.unbind(res.getRemainingName()); } finally { ctx.close(); } }
@Override public void destroySubcontext(String name) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context ctx = (Context)res.getResolvedObj(); try { ctx.destroySubcontext(res.getRemainingName()); } finally { ctx.close(); } }
@Override public Context createSubcontext(String name) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context ctx = (Context)res.getResolvedObj(); try { return ctx.createSubcontext(res.getRemainingName()); } finally { ctx.close(); } }
@Override public Object lookupLink(String name) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context ctx = (Context)res.getResolvedObj(); try { return ctx.lookupLink(res.getRemainingName()); } finally { ctx.close(); } }
@Override public NameParser getNameParser(String name) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context ctx = (Context)res.getResolvedObj(); try { return ctx.getNameParser(res.getRemainingName()); } finally { ctx.close(); } }
@Override public NamingEnumeration<NameClassPair> list(String name) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context ctx = (Context)res.getResolvedObj(); try { return ctx.list(res.getRemainingName()); } finally { ctx.close(); } }
@Override public NamingEnumeration<Binding> listBindings(String name) throws NamingException { ResolveResult res = getRootURLContext(name, env); Context ctx = (Context)res.getResolvedObj(); try { return ctx.listBindings(res.getRemainingName()); } finally { ctx.close(); } }
public Object lookupLink(String name) throws NamingException { ResolveResult res = getRootURLContext(name, myEnv); Context ctx = (Context)res.getResolvedObj(); try { return ctx.lookupLink(res.getRemainingName()); } finally { ctx.close(); } }
public NamingEnumeration<NameClassPair> list(String name) throws NamingException { ResolveResult res = getRootURLContext(name, myEnv); Context ctx = (Context)res.getResolvedObj(); try { return ctx.list(res.getRemainingName()); } finally { ctx.close(); } }
public NamingEnumeration<Binding> listBindings(String name) throws NamingException { ResolveResult res = getRootURLContext(name, myEnv); Context ctx = (Context)res.getResolvedObj(); try { return ctx.listBindings(res.getRemainingName()); } finally { ctx.close(); } }
public NameParser getNameParser(String name) throws NamingException { ResolveResult res = getRootURLContext(name, myEnv); Context ctx = (Context)res.getResolvedObj(); try { return ctx.getNameParser(res.getRemainingName()); } finally { ctx.close(); } }