Lines Matching refs:name

108     public Object lookup(Name name) throws NamingException {
109 if (name.isEmpty()) {
114 obj = registry.lookup(name.get(0));
116 throw (new NameNotFoundException(name.get(0)));
120 return (decodeObject(obj, name.getPrefix(1)));
123 public Object lookup(String name) throws NamingException {
124 return lookup(new CompositeName(name));
131 public void bind(Name name, Object obj) throws NamingException {
132 if (name.isEmpty()) {
134 "RegistryContext: Cannot bind empty name"));
137 registry.bind(name.get(0), encodeObject(obj, name.getPrefix(1)));
139 NamingException ne = new NameAlreadyBoundException(name.get(0));
147 public void bind(String name, Object obj) throws NamingException {
148 bind(new CompositeName(name), obj);
151 public void rebind(Name name, Object obj) throws NamingException {
152 if (name.isEmpty()) {
154 "RegistryContext: Cannot rebind empty name"));
157 registry.rebind(name.get(0), encodeObject(obj, name.getPrefix(1)));
163 public void rebind(String name, Object obj) throws NamingException {
164 rebind(new CompositeName(name), obj);
167 public void unbind(Name name) throws NamingException {
168 if (name.isEmpty()) {
170 "RegistryContext: Cannot unbind empty name"));
173 registry.unbind(name.get(0));
181 public void unbind(String name) throws NamingException {
182 unbind(new CompositeName(name));
194 public void rename(String name, String newName) throws NamingException {
195 rename(new CompositeName(name), new CompositeName(newName));
198 public NamingEnumeration list(Name name) throws NamingException {
199 if (!name.isEmpty()) {
211 public NamingEnumeration list(String name) throws NamingException {
212 return list(new CompositeName(name));
215 public NamingEnumeration listBindings(Name name)
218 if (!name.isEmpty()) {
230 public NamingEnumeration listBindings(String name) throws NamingException {
231 return listBindings(new CompositeName(name));
234 public void destroySubcontext(Name name) throws NamingException {
238 public void destroySubcontext(String name) throws NamingException {
242 public Context createSubcontext(Name name) throws NamingException {
246 public Context createSubcontext(String name) throws NamingException {
250 public Object lookupLink(Name name) throws NamingException {
251 return lookup(name);
254 public Object lookupLink(String name) throws NamingException {
255 return lookup(name);
258 public NameParser getNameParser(Name name) throws NamingException {
262 public NameParser getNameParser(String name) throws NamingException {
266 public Name composeName(Name name, Name prefix) throws NamingException {
268 return result.addAll(name);
271 public String composeName(String name, String prefix)
274 return composeName(new CompositeName(name),
305 return ""; // Registry has an empty name
423 * @param name The object's name relative to this context.
425 private Remote encodeObject(Object obj, Name name)
428 obj = NamingManager.getStateToBind(obj, name, this, environment);
449 * @param name The object's name relative to this context.
451 private Object decodeObject(Remote r, Name name) throws NamingException {
456 return NamingManager.getObjectInstance(obj, name, this,
474 * A name parser for case-sensitive atomic names.
479 public Name parse(String name) throws NamingException {
480 return (new CompoundName(name, syntax));
486 * An enumeration of name / class-name pairs. Since we don't know anything
487 * about the classes, each class name is returned as the generic
507 // Convert name to a one-element composite name, so embedded
509 String name = names[nextName++];
510 Name cname = (new CompositeName()).add(name);
513 ncp.setNameInNamespace(name);
540 * be nicer to defer this until the object (or its class name) is actually
571 // Convert name to a one-element composite name, so embedded
573 String name = names[nextName++];
574 Name cname = (new CompositeName()).add(name);