+2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
+
+ * javax/naming/InitialContext.java (init): Fix typo.
+ (composeName): Remove unnecessary semicolon.
+ (addToEnvironment): Remove unnecessary semicolon.
+ (addToEnvironment): Use put() instead of add().
+
+ * javax/naming/InitialContext.java (InitialContext):
+ Make public.
+ (destroySubcontext): Method doesn't return a result.
+ * javax/naming/Context.java: Import java.util.Hashtable.
+ * javax/naming/Name.java: Import java.util.Enumeration.
+
2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
* Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
protected boolean gotDefault = false;
protected Hashtable myProps;
- InitialContext (Hashtable environment)
+ public InitialContext (Hashtable environment)
{
init (environment);
}
init (null);
}
- InitialContext ()
+ public InitialContext ()
{
init (null);
}
// FIXME: Is this enough?
private static final String[] colon_list =
{
- Context.OBJECT_FACTORIS,
+ Context.OBJECT_FACTORIES,
Context.URL_PKG_PREFIXES,
Context.STATE_FACTORIES
};
public void destroySubcontext (Name name) throws NamingException
{
- return getURLOrDefaultInitCtx (name).destroySubcontext (name);
+ getURLOrDefaultInitCtx (name).destroySubcontext (name);
}
public void destroySubcontext (String name) throws NamingException
{
- return getURLOrDefaultInitCtx (name).destroySubcontext (name);
+ getURLOrDefaultInitCtx (name).destroySubcontext (name);
}
public Context createSubcontext (Name name) throws NamingException
}
public String composeName (String name,
- String prefix) throws NamingException;
+ String prefix) throws NamingException
{
return getURLOrDefaultInitCtx (name).composeName (name, prefix);
}
public Object addToEnvironment (String propName,
- Object propVal) throws NamingException;
+ Object propVal) throws NamingException
{
- myProps.add (propName, propVal);
+ myProps.put (propName, propVal);
}
public Object removeFromEnvironment (String propName) throws NamingException