/** * Return a not-context exception for a name. * * @param name the name * @return the exception */ public static NotContextException notAContextException(Name name) { return new NotContextException(name.toString()); }
@Override public NamingEnumeration<Binding> listBindings(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new ListBindingEnumeration(); } else if (o instanceof Context) { return ((Context) o).listBindings(""); } else { throw new NotContextException(); } }
@Override public NamingEnumeration<NameClassPair> list(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new ListEnumeration(); } else if (o instanceof Context) { return ((Context) o).list(""); } else { throw new NotContextException(); } }
public NamingEnumeration list(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new ListEnumeration(); } else if (o instanceof Context) { return ((Context)o).list(""); } else { throw new NotContextException(); } }
public NamingEnumeration listBindings(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new ListBindingEnumeration(); } else if (o instanceof Context) { return ((Context)o).listBindings(""); } else { throw new NotContextException(); } }
(CNCtx) obj, true, _env); } else { throw new NotContextException(name.toString()); } catch (BAD_PARAM e) { NamingException ne = new NotContextException(name.toString()); ne.setRootCause(e); throw ne;
String.format("Can not find %s", name)); throw new NotContextException(String.format("Expected Context but found %s", boundObject));
String.format("Name %s not found", name)); } else { throw new NotContextException(String.format("Expected Context but found %s", subContext));
sub.bind(parsedName.getSuffix(1), obj); } else { throw new NotContextException(String.format("Expected Context but found %s", boundObject));
throw new NotContextException(String.format("Expected Context but found %s", boundObject));
throw new NotContextException();
res = ((ContextImpl) res).lookup(parsedName.getSuffix(1)); } else { throw new NotContextException( String.format("Expected ContextImpl but found %s", res));
} catch (BAD_PARAM e) { NamingException ne = new NotContextException(name.toString()); ne.setRootCause(e); throw ne;
throw new NotContextException(name.toString()); } catch (CannotProceedException e) { javax.naming.Context cctx = getContinuationContext(e);
public NamingEnumeration list(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new DefaultSpringJndiContext.ListEnumeration(); } else if (o instanceof Context) { return ((Context) o).list(""); } else { throw new NotContextException(); } }
public NamingEnumeration listBindings(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new DefaultSpringJndiContext.ListBindingEnumeration(); } else if (o instanceof Context) { return ((Context) o).listBindings(""); } else { throw new NotContextException(); } }
public NamingEnumeration list(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new ListEnumeration(); } else if (o instanceof Context) { return ((Context)o).list(""); } else { throw new NotContextException(); } }
public NamingEnumeration listBindings(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new ListBindingEnumeration(); } else if (o instanceof Context) { return ((Context)o).listBindings(""); } else { throw new NotContextException(); } }
@Override public NamingEnumeration<NameClassPair> list(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new ListEnumeration(); } else if (o instanceof Context) { return ((Context) o).list(""); } else { throw new NotContextException(); } }
@Override public NamingEnumeration<Binding> listBindings(String name) throws NamingException { Object o = lookup(name); if (o == this) { return new ListBindingEnumeration(); } else if (o instanceof Context) { return ((Context) o).listBindings(""); } else { throw new NotContextException(); } }