Examples of CompositeName


Examples of javax.naming.CompositeName

                "WinstoneContext.LinkRefUnsupported");
        return lookup(name);
    }

    public Object lookupLink(String name) throws NamingException {
        return lookupLink(new CompositeName(name));
    }
View Full Code Here

Examples of javax.naming.CompositeName

        // Lookup the object - if it's not a context, throw an error
        else {
            Object ctx = this.lookup(searchName);
            if (ctx instanceof Context)
                try {
                    return ((Context) ctx).list(new CompositeName(""));
                } finally {
                    ((Context) ctx).close();
                }
            else if (ctx == null)
                throw new NameNotFoundException(ContainerJNDIManager.JNDI_RESOURCES.getString(
View Full Code Here

Examples of javax.naming.CompositeName

                                ctx.getClass().getName() }));
        }
    }

    public NamingEnumeration list(String name) throws NamingException {
        return list(new CompositeName(name));
    }
View Full Code Here

Examples of javax.naming.CompositeName

        // Lookup the object - if it's not a context, throw an error
        else {
            Object ctx = this.lookup(searchName);
            if (ctx instanceof Context)
                try {
                    return ((Context) ctx).listBindings(new CompositeName(""));
                } finally {
                    ((Context) ctx).close();
                }
            else if (ctx == null)
                throw new NameNotFoundException(ContainerJNDIManager.JNDI_RESOURCES.getString(
View Full Code Here

Examples of javax.naming.CompositeName

                                ctx.getClass().getName() }));
        }
    }

    public NamingEnumeration listBindings(String name) throws NamingException {
        return listBindings(new CompositeName(name));
    }
View Full Code Here

Examples of javax.naming.CompositeName

        }
        return nameParser;
    }

    public NameParser getNameParser(String name) throws NamingException {
        return getNameParser(new CompositeName(name));
    }
View Full Code Here

Examples of javax.naming.CompositeName

    /***************************************************************************
     * Below here is for read-write contexts ... *
     **************************************************************************/

    public void bind(String name, Object value) throws NamingException {
        bind(new CompositeName(name), value);
    }
View Full Code Here

Examples of javax.naming.CompositeName

                }
        } else if ((!allowOverwrites) && this.bindings.get(name.get(0)) != null)
            throw new NamingException(ContainerJNDIManager.JNDI_RESOURCES.getString(
                    "WinstoneContext.AlreadyExists", name.toString()));
        else {
            value = NamingManager.getStateToBind(value, new CompositeName()
                    .add(bindName.get(0)), this, this.environment);
            synchronized (this.contextLock) {
                this.bindings.put(bindName.get(0), value);
            }
        }
View Full Code Here

Examples of javax.naming.CompositeName

            }
        }
    }

    public void rebind(String name, Object value) throws NamingException {
        rebind(new CompositeName(name), value);
    }
View Full Code Here

Examples of javax.naming.CompositeName

    public void rebind(Name name, Object value) throws NamingException {
        bind(name, value, true);
    }

    public void unbind(String name) throws NamingException {
        unbind(new CompositeName(name));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.