|
From: <pe...@us...> - 2003-09-23 19:17:01
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/id/cache
Modified Files:
NSCache.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: NSCache.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache/NSCache.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** NSCache.java 22 Sep 2003 19:24:01 -0000 1.2
--- NSCache.java 23 Sep 2003 19:16:27 -0000 1.3
***************
*** 4,8 ****
import com.waterken.adt.cache.Cache;
import org.neuclear.id.NSTools;
! import org.neuclear.id.NameSpace;
import org.neudist.utils.NeudistException;
--- 4,8 ----
import com.waterken.adt.cache.Cache;
import org.neuclear.id.NSTools;
! import org.neuclear.id.Identity;
import org.neudist.utils.NeudistException;
***************
*** 25,33 ****
* Attempts to get a verified PublicKey for the given name from the cache
* @param name Fully Normalised name
! * @return a valid NameSpace object if found otherwise null
*/
! public NameSpace fetchCached(String name) {
try { // I dont like the way it forces me to catch this. I need to rewrite it.
! return (NameSpace) spaces.fetch(name);
} catch (NoSuchElement noSuchElement) {
return null;
--- 25,33 ----
* Attempts to get a verified PublicKey for the given name from the cache
* @param name Fully Normalised name
! * @return a valid Identity object if found otherwise null
*/
! public Identity fetchCached(String name) {
try { // I dont like the way it forces me to catch this. I need to rewrite it.
! return (Identity) spaces.fetch(name);
} catch (NoSuchElement noSuchElement) {
return null;
***************
*** 35,39 ****
}
! public void cache(NameSpace ns) throws NeudistException {
// Only store if it's parent is already here
String parentName = NSTools.getParentNSURI(ns.getName());
--- 35,39 ----
}
! public void cache(Identity ns) throws NeudistException {
// Only store if it's parent is already here
String parentName = NSTools.getParentNSURI(ns.getName());
|