public void bind(String name, final Object obj) throws NamingException { checkReadOnly(); final int indx = name.indexOf(":"); if (indx > -1) { /* The ':' character will be in the path if its an absolute path name starting with the schema 'java:'. We strip the schema off the path before passing it to the node.resolve method. */ name = name.substring(indx + 1); } if (fastCache.containsKey(name)) { throw new NameAlreadyBoundException(); } else { final ParsedName parsedName = new ParsedName(name); mynode.bind(parsedName, obj); } }
public void bind(String name, Object obj) throws NamingException { checkReadOnly(); int indx = name.indexOf(":"); if (indx > -1) { /* The ':' character will be in the path if its an absolute path name starting with the schema 'java:'. We strip the schema off the path before passing it to the node.resolve method. */ name = name.substring(indx + 1); } if (fastCache.containsKey(name)) throw new javax.naming.NameAlreadyBoundException(); else { ParsedName parsedName = new ParsedName(name); mynode.bind(parsedName, obj); } }
public IvmContext createSubcontext(ParsedName name) throws javax.naming.NameAlreadyBoundException { try { bind(name, null); name.reset(); return (IvmContext) resolve(name); } catch (javax.naming.NameNotFoundException exception) { exception.printStackTrace(); throw new RuntimeException(exception); } }
public void bind(String name, final Object obj) throws NamingException { if(checkReadOnly()) { return; } final int indx = name.indexOf(":"); if (indx > -1) { /* The ':' character will be in the path if its an absolute path name starting with the schema 'java:'. We strip the schema off the path before passing it to the node.resolve method. */ name = name.substring(indx + 1); } if (fastCache.containsKey(name)) { throw new NameAlreadyBoundException(); } else { final ParsedName parsedName = getParsedNameFor(name); mynode.bind(parsedName, obj); } }
public IvmContext createSubcontext(final ParsedName name, final boolean createReadOnlyContext) throws NameAlreadyBoundException { try { bind(name, null); name.reset(); return (IvmContext) resolve(name, createReadOnlyContext); } catch (final NameNotFoundException exception) { exception.printStackTrace(); throw new OpenEJBRuntimeException(exception); } }
public IvmContext createSubcontext(final ParsedName name) throws NameAlreadyBoundException { try { bind(name, null); name.reset(); return (IvmContext) resolve(name); } catch (final NameNotFoundException exception) { exception.printStackTrace(); throw new OpenEJBRuntimeException(exception); } }
subTree = new NameNode(this, name, obj, this); else subTree.bind(name, obj); } else { if (subTree != null) { lessTree = new NameNode(this.parent, name, obj, this); else lessTree.bind(name, obj); } else {//ParsedName.IS_GREATER ... grtrTree = new NameNode(this.parent, name, obj, this); else grtrTree.bind(name, obj);