Package javax.naming

Examples of javax.naming.CompoundName


    * of this parser.
    * @exception NamingException If a naming exception was encountered.
    */
   public Name parse(String name) throws NamingException
   {
      return new CompoundName(name, syntax);
   }
View Full Code Here


        } catch (NamingException e) {
            // OK
        }
        assertEquals("Hello", envContext.lookup(new CompositeName("hello")));
        assertEquals("Hello", compContext.lookup(new CompositeName("env/hello")));
        assertEquals("Hello", envContext.lookup(new CompoundName("hello", syntax)));
        assertEquals("Hello", compContext.lookup(new CompoundName("env/hello", syntax)));

        assertEquals(envContext, envContext.lookup(""));
    }
View Full Code Here

    }

    public Name parse( final String name )
        throws NamingException
    {
        return new CompoundName( name, c_syntax );
    }
View Full Code Here

        getInstance().jnpServer.setNamingInfo(nbi);
        nbi.start();
       
        LOG.debug("Binding kachny");
       
        nbi.getNamingInstance().bind(new CompoundName("kachny", new Properties()), "KACHNY!", String.class.getName());
       
        LOG.debug("Starting the JNP server");
       
        getInstance().jnpServer.start();
    }
View Full Code Here

  private static Properties syntax = new Properties(); {
    syntax.put("jndi.syntax.direction", "flat");
    syntax.put("jndi.syntax.ignorecase", "false");
  }
  public Name parse(String name) throws NamingException {
    return new CompoundName(name, syntax);
  }
View Full Code Here

    /** Creates new NamespacePermission */
    public PermissionName(String name) throws IllegalArgumentException
    {
        try
        {
            this.name = new CompoundName(name, nameSyntax);
        }
        catch(NamingException e)
        {
            throw new IllegalArgumentException(e.toString(true));
        }
View Full Code Here

        } catch (NamingException e) {
            // OK
        }
        assertEquals("Hello", envContext.lookup(new CompositeName("hello")));
        assertEquals("Hello", compContext.lookup(new CompositeName("env/hello")));
        assertEquals("Hello", envContext.lookup(new CompoundName("hello", syntax)));
        assertEquals("Hello", compContext.lookup(new CompoundName("env/hello", syntax)));

        assertEquals(envContext, envContext.lookup(""));
    }
View Full Code Here

            syntax.put("jndi.syntax.direction", "flat");
            syntax.put("jndi.syntax.ignorecase", "false");
        }
       
        public Name parse(String name) throws NamingException {
            return new CompoundName(name, syntax);
        }
View Full Code Here

         private SimpleNameParser() {
         }

         public Name parse(String name) throws NamingException {
             return new CompoundName(name, PARSER_PROPERTIES);
         }
View Full Code Here

            syntax.put("jndi.syntax.ignorecase", "false");
        }

        public Name parse(String name) throws NamingException
        {
            return new CompoundName(name, syntax);
        }
View Full Code Here

TOP

Related Classes of javax.naming.CompoundName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.