|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.weaver.analysis.DependencyManager
public class DependencyManager
Supports the dependencies between various transformations and determines the correct execution order.
Constructor Summary | |
---|---|
DependencyManager()
Creates a DependencyManager instance. |
Method Summary | |
---|---|
void |
addTransformation(Transformation ct)
Adds a transformation to the set for which dependencies are determined. |
void |
executeDependents(Transformation t,
javassist.CtClass c,
javassist.CtClass proxy)
Executes all the dependents of the ClassTransformation so that t can be executed. |
Transformation |
findTransform(java.lang.String clazz)
Finds the instance of the passed in class. |
TransformationChain |
getCompleteChain()
|
java.util.List<Transformation> |
getDependencyTree(Transformation t)
Gets the list of dependencies that need to be executed before t can be run. |
java.util.Set<Transformation> |
getTransformations()
Retrieves all the transformations. |
void |
removeTransformation(Transformation ct)
Removes the instance from the transformation list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DependencyManager()
Method Detail |
---|
public void addTransformation(Transformation ct)
ct
- The transformation to addpublic void removeTransformation(Transformation ct)
ct
- The transformation to removepublic java.util.Set<Transformation> getTransformations()
public void executeDependents(Transformation t, javassist.CtClass c, javassist.CtClass proxy)
t
- The Transformation to find the dependencies fromc
- The class to transform
InvalidDependencyTreeException
- If the ordering can not be determined,
such as when a transformations dependencies have not been added.public java.util.List<Transformation> getDependencyTree(Transformation t)
t
- The transformation that dependencies are needed for.
public Transformation findTransform(java.lang.String clazz)
clazz
- the class to search for
InvalidDependencyTreeException
- If no such transformation can be foundpublic TransformationChain getCompleteChain()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |