@Override public Object removeFromEnvironment(String propName) throws NamingException { return context.removeFromEnvironment(propName); }
context3.addToEnvironment("key2", "value2"); assertTrue("key2 added", "value2".equals(context3.getEnvironment().get("key2"))); context3.removeFromEnvironment("key1"); assertTrue("key1 removed", context3.getEnvironment().get("key1") == null);
/** * @see javax.naming.Context#removeFromEnvironment(java.lang.String) */ public Object removeFromEnvironment(String propName) throws NamingException { return _ctx.removeFromEnvironment(propName); }
/** * Removes an environment property from the environment of this context. See * class description for more details on environment properties. * @param propName the name of the environment property to remove; may not * be null * @return the previous value of the property, or null if the property was * not in the environment * @throws NamingException if a naming exception is encountered */ public Object removeFromEnvironment(final String propName) throws NamingException { return wrappedContext.removeFromEnvironment(propName); }
@Override public synchronized Object removeFromEnvironment(String propName) throws NamingException { return this.delegate.removeFromEnvironment(propName); }
public Object removeFromEnvironment(String propName) throws NamingException { return iiopContext.removeFromEnvironment(propName); }
@Override public Object removeFromEnvironment(final String propName) throws NamingException { return context.removeFromEnvironment(propName); }
/** * Removes an environment property from the environment of this context. * * @param propName the name of the environment property to remove; * may not be null * @throws NamingException if a naming exception is encountered */ @Override public Object removeFromEnvironment(String propName) throws NamingException { return getBoundContext().removeFromEnvironment(propName); }
/** * Removes an environment property from the environment of this context. * * @param propName the name of the environment property to remove; * may not be null * @exception NamingException if a naming exception is encountered */ @Override public Object removeFromEnvironment(String propName) throws NamingException { return getBoundContext().removeFromEnvironment(propName); }
/** * Removes an environment property from the environment of this context. See * class description for more details on environment properties. * @param propName the name of the environment property to remove; may not * be null * @return the previous value of the property, or null if the property was * not in the environment * @throws NamingException if a naming exception is encountered */ public Object removeFromEnvironment(String propName) throws NamingException { return findContext().removeFromEnvironment(propName); }
@Override public Object removeFromEnvironment(String propName) throws NamingException { Object out; if (this.initialContext == null) { out = this.defaultInitCtx.removeFromEnvironment(propName); } else { out = this.initialContext.removeFromEnvironment(propName); } return out; }
/** * {@inheritDoc} */ public Object removeFromEnvironment(String propName) throws NamingException { return getThreadContext().removeFromEnvironment(propName); }
/** * {@inheritDoc} */ public Object removeFromEnvironment(final String propName) throws NamingException { return getThreadContext().removeFromEnvironment(propName); }
public Object removeFromEnvironment(final String propName) throws NamingException { if(serverModeEnabled) { return localContext.removeFromEnvironment(propName); } else { LOGGER.warn("Cannot removeFromEnvironment because server mode is not activated."); return null; } }
/** * Removes an environment property from the environment of this context. * * @param propName the name of the environment property to remove; * may not be null * @exception NamingException if a naming exception is encountered */ @Override public Object removeFromEnvironment(String propName) throws NamingException { return getBoundContext().removeFromEnvironment(propName); }
/** * Removes an environment property from the environment of this context. * * @param propName the name of the environment property to remove; * may not be null * @exception NamingException if a naming exception is encountered */ @Override public Object removeFromEnvironment(String propName) throws NamingException { return getBoundContext().removeFromEnvironment(propName); }
@Override public Object operation() throws NamingException { return getDelegate().removeFromEnvironment(propName); } }.perform();
public Object removeFromEnvironment(final String propName) throws NamingException { if(localContext != null) { return localContext.removeFromEnvironment(propName); } else { LOGGER.warn("Cannot removeFromEnvironment because server mode is not activated."); return null; } }
/** * Removes an environment property from the environment of this context. * * @param propName the name of the environment property to remove; * may not be null * @exception NamingException if a naming exception is encountered */ @Override public Object removeFromEnvironment(String propName) throws NamingException { return getBoundContext().removeFromEnvironment(propName); }
public Object removeFromEnvironment(String propName) throws NamingException { check(); return original.removeFromEnvironment(propName); }