InitialContext.java (init): Fix typo.
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. From-SVN: r40888
This commit is contained in:
parent
055c77597b
commit
0d430c965d
@ -1,3 +1,16 @@
|
||||
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
|
||||
|
@ -8,6 +8,8 @@ details. */
|
||||
|
||||
package javax.naming;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
public interface Context
|
||||
{
|
||||
// Property with name of the inital context factory to use
|
||||
|
@ -26,7 +26,7 @@ public class InitialContext implements Context
|
||||
protected boolean gotDefault = false;
|
||||
protected Hashtable myProps;
|
||||
|
||||
InitialContext (Hashtable environment)
|
||||
public InitialContext (Hashtable environment)
|
||||
{
|
||||
init (environment);
|
||||
}
|
||||
@ -37,7 +37,7 @@ public class InitialContext implements Context
|
||||
init (null);
|
||||
}
|
||||
|
||||
InitialContext ()
|
||||
public InitialContext ()
|
||||
{
|
||||
init (null);
|
||||
}
|
||||
@ -116,7 +116,7 @@ public class InitialContext implements Context
|
||||
// FIXME: Is this enough?
|
||||
private static final String[] colon_list =
|
||||
{
|
||||
Context.OBJECT_FACTORIS,
|
||||
Context.OBJECT_FACTORIES,
|
||||
Context.URL_PKG_PREFIXES,
|
||||
Context.STATE_FACTORIES
|
||||
};
|
||||
@ -256,12 +256,12 @@ public class InitialContext implements Context
|
||||
|
||||
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
|
||||
@ -300,15 +300,15 @@ public class InitialContext implements Context
|
||||
}
|
||||
|
||||
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
|
||||
|
@ -8,6 +8,7 @@ details. */
|
||||
|
||||
package javax.naming;
|
||||
|
||||
import java.util.Enumeration;
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface Name extends Cloneable, Serializable
|
||||
|
Loading…
Reference in New Issue
Block a user