@Test public void testComposeNameNameName() throws Exception { try (CloseableNamingContext context = closeableContext()) { Name c = context.composeName(createName("world"), createName("hello")); assertEquals("hello/world", c.toString()); } }
@Override public Name composeName(Name name, Name prefix) throws NamingException { Name composed = (Name) prefix.clone(); return composed.addAll(name); }
NamingContext implements Context, Serializable { @Override public Name composeName(Name name, Name prefix) throws NamingException { Name composed = (Name) prefix.clone(); return composed.addAll(name); } }
NamingContext implements Context, Serializable { @Override public Name composeName(Name name, Name prefix) throws NamingException { Name composed = (Name) prefix.clone(); return composed.addAll(name); } NamingContext();  NamingContext(Hashtable<String, Object> environment);  NamingContext(Hashtable<String, Object> environment, Map<String, Object> objects);  NamingContext(Hashtable<String, Object> environment, String nameInNamespace); }
NamingContext implements Context, Serializable { @Override public Name composeName(Name name, Name prefix) throws NamingException { Name composed = (Name) prefix.clone(); return composed.addAll(name); } NamingContext();  NamingContext(Hashtable<String, Object> environment);  NamingContext(Hashtable<String, Object> environment, Map<String, Object> objects);  NamingContext(Hashtable<String, Object> environment, String nameInNamespace); @Override void bind(Name name, Object object); void bind(Name bindName, Object object, boolean rebind); @Override Name composeName(Name name, Name prefix); @Override String composeName(String name, String prefix); @Override Context createSubcontext(Name name); @Override void destroySubcontext(Name contextToDestroy); @Override String getNameInNamespace(); @Override NameParser getNameParser(Name name); @Override NameParser getNameParser(String name); @Override NamingEnumeration list(Name name); @Override NamingEnumeration list(String name); @Override NamingEnumeration<Binding> listBindings(Name name); @Override NamingEnumeration<Binding> listBindings(String name); @Override Object lookup(Name lookupName); @Override Object lookupLink(Name name); @Override void rebind(Name name, Object object); @Override void rename(Name oldName, Name newName); @Override void unbind(Name toUnbind); @Override Object lookup(String name); @Override Object lookupLink(String name); @Override void unbind(String name); @Override void rebind(String name, Object object); @Override Object removeFromEnvironment(String propertyName); @Override Object addToEnvironment(String propertyName, Object propertyVal); @Override Hashtable<?, ?> getEnvironment(); @Override void bind(String name, Object object); @Override void close(); @Override Context createSubcontext(String name); @Override void destroySubcontext(String name); @Override void rename(String oldName, String newName); }
NamingContext implements Context, Serializable { @Override public Name composeName(Name name, Name prefix) throws NamingException { Name composed = (Name) prefix.clone(); return composed.addAll(name); } NamingContext();  NamingContext(Hashtable<String, Object> environment);  NamingContext(Hashtable<String, Object> environment, Map<String, Object> objects);  NamingContext(Hashtable<String, Object> environment, String nameInNamespace); @Override void bind(Name name, Object object); void bind(Name bindName, Object object, boolean rebind); @Override Name composeName(Name name, Name prefix); @Override String composeName(String name, String prefix); @Override Context createSubcontext(Name name); @Override void destroySubcontext(Name contextToDestroy); @Override String getNameInNamespace(); @Override NameParser getNameParser(Name name); @Override NameParser getNameParser(String name); @Override NamingEnumeration list(Name name); @Override NamingEnumeration list(String name); @Override NamingEnumeration<Binding> listBindings(Name name); @Override NamingEnumeration<Binding> listBindings(String name); @Override Object lookup(Name lookupName); @Override Object lookupLink(Name name); @Override void rebind(Name name, Object object); @Override void rename(Name oldName, Name newName); @Override void unbind(Name toUnbind); @Override Object lookup(String name); @Override Object lookupLink(String name); @Override void unbind(String name); @Override void rebind(String name, Object object); @Override Object removeFromEnvironment(String propertyName); @Override Object addToEnvironment(String propertyName, Object propertyVal); @Override Hashtable<?, ?> getEnvironment(); @Override void bind(String name, Object object); @Override void close(); @Override Context createSubcontext(String name); @Override void destroySubcontext(String name); @Override void rename(String oldName, String newName);  }