Package org.codehaus.spice.jndikit

Examples of org.codehaus.spice.jndikit.StandardNamespace


            {
                final NamingProvider provider =
                    ( NamingProvider ) environment.get(
                        RemoteContext.NAMING_PROVIDER );

                return new StandardNamespace( provider.getNameParser() );
            }
            catch( final Exception e )
            {
                if( e instanceof NamingException )
                {
View Full Code Here


{

    protected Context getRoot() throws Exception
    {
        final DefaultNameParser parser = new DefaultNameParser();
        final Namespace namespace = new StandardNamespace( parser );

        Hashtable environment = new Hashtable();
        environment.put( Context.STATE_FACTORIES,
                         TestStateFactory.class.getName() );
View Full Code Here

     *
     * @param parser the parser to use
     * @return a new namespace
     */
    private Namespace createNamespace(NameParser parser) {
        return new StandardNamespace(parser);
    }
View Full Code Here

            NamingException error = new ServiceUnavailableException(
                    exception.getMessage());
            error.setRootCause(exception);
            throw error;
        }
        Namespace namespace = new StandardNamespace(parser);
        properties.put(RemoteContext.NAMING_PROVIDER, provider);
        properties.put(RemoteContext.NAMESPACE, namespace);
        RemoteContext root = new RemoteContext(properties, parser.parse(""));
        return new ORBRemoteContext(root);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.spice.jndikit.StandardNamespace

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.