net.sf.sail.core.curnit
Class CurnitArchiveResolver
java.lang.Object
net.sf.sail.core.curnit.CurnitArchiveResolver
public class CurnitArchiveResolver
- extends java.lang.Object
Used to look up the URL of the archive backing a Curnit.
Currently it's shared on the VM, which may not be a problem as Curnit's have
universally unique ids. We'll have to think about this with regards to
versioning.
- Author:
- turadg
AUDIT07-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurnitArchiveResolver
public CurnitArchiveResolver()
put
public void put(CurnitUuid curnitId,
java.net.URL url)
- Parameters:
curnitId
- url
- runtime URL of curnit archive (e.g. file:///tmp/curnit-abc1.jar)
getUrl
public java.net.URL getUrl(CurnitUuid curnitId)
dump
public void dump(java.io.PrintStream out)
getSystemResolver
public static CurnitArchiveResolver getSystemResolver()
withinCurnitArchive
public static java.net.URL withinCurnitArchive(CurnitUuid curnitUuid,
java.lang.String path)
- Takes curnitarchive protocol and converting it to a jar url.
- Parameters:
curnitUuid
- - The curnit idpath
- - path within the curnit
- Returns:
Copyright © 2004-2008 TELS Center. All Rights Reserved.