junit.quilt.cover.state
Class StateMachineRegistry
java.lang.Object
|
+--junit.quilt.util.Registry
|
+--junit.quilt.framework.QuiltRegistry
|
+--junit.quilt.cover.state.StateMachineRegistry
- public class StateMachineRegistry
- extends QuiltRegistry
A simple registry for all the State Machines that are created. Useful
for reporting purposes. This
will need to be made thread aware, possibly using ThreadLocal inheritance.
Now we are using a multimap, it would be nice to move to a tree data
structure in order to ease with reporting. Maybe a swing treemodel.
- Version:
- @VERSION@
- Author:
- Mark Pollack, David Dixon-Peugh
Method Summary |
void |
bind(java.lang.String className,
java.lang.String methodName,
SimpleStateMachine sm)
Store under a name a state machine. |
SimpleStateMachine |
lookup(java.lang.String className,
java.lang.String methodName)
Lookup a StateMachine given the class and method. |
java.lang.ClassLoader |
newInstClassLoader(java.lang.String[] packages,
java.net.URL[] path,
java.lang.ClassLoader parent)
|
Methods inherited from class junit.quilt.framework.QuiltRegistry |
addPackage, addPath, getCollector, getCollector, getInstClassLoader, getLevels, getPackages, getParentClassLoader, getPaths, registerCollector, removePackage, removePath, setLevels, setPackages, setParentClassLoader, setPaths |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateMachineRegistry
public StateMachineRegistry()
newInstClassLoader
public java.lang.ClassLoader newInstClassLoader(java.lang.String[] packages,
java.net.URL[] path,
java.lang.ClassLoader parent)
- Overrides:
newInstClassLoader
in class QuiltRegistry
bind
public void bind(java.lang.String className,
java.lang.String methodName,
SimpleStateMachine sm)
- Store under a name a state machine.
- Parameters:
classname
- Class Name.methodname
- Method name.sm
- a StateMachine
value
lookup
public SimpleStateMachine lookup(java.lang.String className,
java.lang.String methodName)
- Lookup a StateMachine given the class and method.
- Parameters:
name
- a String
value- Returns:
- a
StateMachine
value
Copyright © 2001-2002 David Dixon-Peugh. All Rights Reserved.