net.sf.sail.core.curnit
Class CurnitArchiveResolver

java.lang.Object
  extended by 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-

Constructor Summary
CurnitArchiveResolver()
           
 
Method Summary
 void dump(java.io.PrintStream out)
           
static CurnitArchiveResolver getSystemResolver()
           
 java.net.URL getUrl(CurnitUuid curnitId)
           
 void put(CurnitUuid curnitId, java.net.URL url)
           
static java.net.URL withinCurnitArchive(CurnitUuid curnitUuid, java.lang.String path)
          Takes curnitarchive protocol and converting it to a jar url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurnitArchiveResolver

public CurnitArchiveResolver()
Method Detail

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 id
path - - path within the curnit
Returns:


Copyright © 2004-2008 TELS Center. All Rights Reserved.