junit.quilt.framework
Class QuiltRegistry

java.lang.Object
  |
  +--junit.quilt.util.Registry
        |
        +--junit.quilt.framework.QuiltRegistry
Direct Known Subclasses:
B94Registry, NoneRegistry, StateMachineRegistry

public abstract class QuiltRegistry
extends Registry


Constructor Summary
protected QuiltRegistry(java.lang.String root)
          This constructor is used to initialize the levels.
 
Method Summary
 void addPackage(java.lang.String pack)
          getInstClassLoader Get a ClassLoader which will instrument the classes it loads, such that the instrumentation can be reported by the collectors stored in this registry.
 void addPath(java.net.URL path)
           
 QuiltCollector getCollector(java.lang.Object[] keys)
           
 QuiltCollector getCollector(javax.swing.tree.TreePath path)
           
 java.lang.ClassLoader getInstClassLoader()
           
 java.lang.String[] getLevels()
           
 java.util.List getPackages()
           
 java.lang.ClassLoader getParentClassLoader()
           
 java.util.List getPaths()
           
protected abstract  java.lang.ClassLoader newInstClassLoader(java.lang.String[] packages, java.net.URL[] path, java.lang.ClassLoader parent)
           
protected  boolean registerCollector(java.lang.Object[] keys, QuiltCollector collector)
           
 void removePackage(java.lang.String pack)
           
 void removePath(java.net.URL path)
           
protected  void setLevels(java.lang.String[] levels)
           
 void setPackages(java.util.List ips)
           
 void setParentClassLoader(java.lang.ClassLoader parent)
           
 void setPaths(java.util.List paths)
           
 
Methods inherited from class junit.quilt.util.Registry
addRegistryListener, get, get, getContents, getValues, register, removeRegistryListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuiltRegistry

protected QuiltRegistry(java.lang.String root)
This constructor is used to initialize the levels. For example, you may pass in: {"Class", "Method"} if you have two levels in the registry.
Method Detail

setLevels

protected void setLevels(java.lang.String[] levels)

getLevels

public java.lang.String[] getLevels()

registerCollector

protected boolean registerCollector(java.lang.Object[] keys,
                                    QuiltCollector collector)

getCollector

public QuiltCollector getCollector(java.lang.Object[] keys)

getCollector

public QuiltCollector getCollector(javax.swing.tree.TreePath path)

addPackage

public void addPackage(java.lang.String pack)
getInstClassLoader Get a ClassLoader which will instrument the classes it loads, such that the instrumentation can be reported by the collectors stored in this registry.

removePackage

public void removePackage(java.lang.String pack)

getPackages

public java.util.List getPackages()

setPackages

public void setPackages(java.util.List ips)

addPath

public void addPath(java.net.URL path)

removePath

public void removePath(java.net.URL path)

getPaths

public java.util.List getPaths()

setPaths

public void setPaths(java.util.List paths)

setParentClassLoader

public void setParentClassLoader(java.lang.ClassLoader parent)

getParentClassLoader

public java.lang.ClassLoader getParentClassLoader()

getInstClassLoader

public java.lang.ClassLoader getInstClassLoader()

newInstClassLoader

protected abstract java.lang.ClassLoader newInstClassLoader(java.lang.String[] packages,
                                                            java.net.URL[] path,
                                                            java.lang.ClassLoader parent)


Copyright © 2001-2002 David Dixon-Peugh. All Rights Reserved.