Methods Summary |
---|
private void | addAll(java.util.Collection collection, javax.naming.NamingEnumeration ne)
// TODO: how about duplicates?
while(ne.hasMore())
{
T ncp = ne.next();
collection.add(ncp);
}
|
public java.lang.Object | addToEnvironment(java.lang.String propName, java.lang.Object propVal)
throw new OperationNotSupportedException();
|
public void | bind(javax.naming.Name name, java.lang.Object obj)
log.trace("bind: " + name + " -> " +obj);
getContextOne().bind(name, obj);
|
public void | bind(java.lang.String name, java.lang.Object obj)
log.trace("bind: " + name + " -> " +obj);
getContextOne().bind(name, obj);
|
public void | close()
// do nothing
|
public javax.naming.Name | composeName(javax.naming.Name name, javax.naming.Name prefix)
return getContextOne().composeName(name, prefix);
|
public java.lang.String | composeName(java.lang.String name, java.lang.String prefix)
return getContextOne().composeName(name, prefix);
|
public javax.naming.Context | createSubcontext(java.lang.String name)
return getContextOne().createSubcontext(name);
|
public javax.naming.Context | createSubcontext(javax.naming.Name name)
return getContextOne().createSubcontext(name);
|
public void | destroySubcontext(javax.naming.Name name)
getContextOne().destroySubcontext(name);
|
public void | destroySubcontext(java.lang.String name)
getContextOne().destroySubcontext(name);
|
private javax.naming.Context | getContextOne()
return contextOne;
|
private javax.naming.Context | getContextTwo()
return contextTwo;
|
public java.util.Hashtable | getEnvironment()
throw new UnsupportedOperationException();
|
public java.lang.String | getNameInNamespace()
throw new UnsupportedOperationException();
|
public javax.naming.NameParser | getNameParser(javax.naming.Name name)
return getContextOne().getNameParser(name);
|
public javax.naming.NameParser | getNameParser(java.lang.String name)
return getContextOne().getNameParser(name);
|
public javax.naming.NamingEnumeration | list(javax.naming.Name name)
Collection<NameClassPair> set = new ArrayList<NameClassPair>();
addAll(set, getContextOne().list(name));
addAll(set, getContextTwo().list(name));
return new NamingEnumerationImpl<NameClassPair>(set);
|
public javax.naming.NamingEnumeration | list(java.lang.String name)
Collection<NameClassPair> set = new ArrayList<NameClassPair>();
addAll(set, getContextOne().list(name));
addAll(set, getContextTwo().list(name));
return new NamingEnumerationImpl<NameClassPair>(set);
|
public javax.naming.NamingEnumeration | listBindings(javax.naming.Name name)
Collection<Binding> set = new ArrayList<Binding>();
addAll(set, getContextOne().listBindings(name));
addAll(set, getContextTwo().listBindings(name));
return new NamingEnumerationImpl<Binding>(set);
|
public javax.naming.NamingEnumeration | listBindings(java.lang.String name)
Collection<Binding> set = new ArrayList<Binding>();
addAll(set, getContextOne().listBindings(name));
addAll(set, getContextTwo().listBindings(name));
return new NamingEnumerationImpl<Binding>(set);
|
public java.lang.Object | lookup(javax.naming.Name name)
log.trace("lookup: " + name);
try
{
return getContextOne().lookup(name);
}
catch(NamingException e)
{
return getContextTwo().lookup(name);
}
|
public java.lang.Object | lookup(java.lang.String name)
log.trace("lookup: " + name);
try
{
return getContextOne().lookup(name);
}
catch(NamingException e)
{
return getContextTwo().lookup(name);
}
|
public java.lang.Object | lookupLink(javax.naming.Name name)
try
{
return getContextOne().lookupLink(name);
}
catch(NamingException e)
{
return getContextTwo().lookupLink(name);
}
|
public java.lang.Object | lookupLink(java.lang.String name)
try
{
return getContextOne().lookupLink(name);
}
catch(NamingException e)
{
return getContextTwo().lookupLink(name);
}
|
public void | rebind(javax.naming.Name name, java.lang.Object obj)
getContextOne().rebind(name, obj);
|
public void | rebind(java.lang.String name, java.lang.Object obj)
getContextOne().rebind(name, obj);
|
public java.lang.Object | removeFromEnvironment(java.lang.String propName)
throw new UnsupportedOperationException();
|
public void | rename(javax.naming.Name oldName, javax.naming.Name newName)
getContextOne().rename(oldName, newName);
|
public void | rename(java.lang.String oldName, java.lang.String newName)
getContextOne().rename(oldName, newName);
|
public void | unbind(javax.naming.Name name)
getContextOne().unbind(name);
|
public void | unbind(java.lang.String name)
getContextOne().unbind(name);
|