PROXY  WHOIS  RQUOTE  TEXTS  SOFT  FOREX  BBOARD
 Music  Philosophy  Code  Literature  Russian

= ROOT|Technical|Code_Examples|Java|javax|naming|InitialContext.java =

page 6 of 6



     * this context.
     * Since an initial context may never be named relative
     * to any context other than itself, the value of the
     * <tt>prefix</tt> parameter must be an empty name.
     */
    public Name composeName(Name name, Name prefix)
	throws NamingException
    {
	return (Name)name.clone();
    }

    public Object addToEnvironment(String propName, Object propVal) 
	    throws NamingException {
	myProps.put(propName, propVal);
	return getDefaultInitCtx().addToEnvironment(propName, propVal);
    }

    public Object removeFromEnvironment(String propName) 
	    throws NamingException {
	myProps.remove(propName);
	return getDefaultInitCtx().removeFromEnvironment(propName);
    }

    public Hashtable<?,?> getEnvironment() throws NamingException {
	return getDefaultInitCtx().getEnvironment();
    }

    public void close() throws NamingException {
	myProps = null;
	if (defaultInitCtx != null) {
	    defaultInitCtx.close();
	    defaultInitCtx = null;
	}
	gotDefault = false;
    }

    public String getNameInNamespace() throws NamingException {
	return getDefaultInitCtx().getNameInNamespace();
    }
};
=6=
THE END

1|2|3|4|5| < PREV = PAGE 6 =

UP TO ROOT | UP TO DIR | TO FIRST PAGE

Google
 

E-mail Facebook Google Digg del.icio.us BlinkList Fark Furl Ma.gnolia Netscape NewsVine Reddit Slashdot Spurl StumbleUpon Technorati YahooMyWeb LiveJournal Blogmarks TwitThis Live News2.ru BobrDobr.ru Memori.ru MoeMesto.ru

0.010891 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)