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

Field Summary
(package private)  java.util.Map<CurnitUuid,java.net.URL> idMap
           
(package private) static CurnitArchiveResolver systemResolver
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemResolver

static final CurnitArchiveResolver systemResolver

idMap

java.util.Map<CurnitUuid,java.net.URL> idMap
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)


Copyright 2004-2004-2006 TELS Center. All Rights Reserved.