Forge - Parent 2.0.0.Alpha1

org.jboss.forge.container.addons
Class AddonTree

java.lang.Object
  extended by org.jboss.forge.container.addons.AddonTree
All Implemented Interfaces:
Iterable<Addon>

public class AddonTree
extends Object
implements Iterable<Addon>

Author:
Lincoln Baxter, III

Constructor Summary
AddonTree(LockManager lock)
           
 
Method Summary
 void add(Addon addon)
           
 void breadthFirst(Visitor<Addon> visitor)
           
 boolean contains(Addon addon)
          Return true if this AddonTree contians the given Addon.
 void depthFirst(Visitor<Addon> visitor)
           
 Iterator<Addon> iterator()
           
 void prune()
          Check to see if any root AddonDependency instances are also a dependency of another Addon.
 void reattach(Addon addon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddonTree

public AddonTree(LockManager lock)
Method Detail

add

public void add(Addon addon)

reattach

public void reattach(Addon addon)

prune

public void prune()
Check to see if any root AddonDependency instances are also a dependency of another Addon. Remove any such duplicate edges from the root Addon to preserve the tree traversal order.


depthFirst

public void depthFirst(Visitor<Addon> visitor)

breadthFirst

public void breadthFirst(Visitor<Addon> visitor)

iterator

public Iterator<Addon> iterator()
Specified by:
iterator in interface Iterable<Addon>

contains

public boolean contains(Addon addon)
Return true if this AddonTree contians the given Addon.


Forge - Parent 2.0.0.Alpha1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.