Package org.nuxeo.common.collections
Class DependencyTree<K,T>
java.lang.Object
org.nuxeo.common.collections.DependencyTree<K,T>
- All Implemented Interfaces:
Iterable<DependencyTree.Entry<K,
T>>
- Direct Known Subclasses:
FragmentRegistry
- Author:
- Bogdan Stefanescu
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
add
(K key, T object, Collection<K> requires) void
void
clear()
Entries are sorted so an entry never depends on entries on its right.boolean
isRegistered
(K key) boolean
isResolved
(K key) iterator()
void
void
resolve
(DependencyTree.Entry<K, T> entry) void
setEventHandler
(org.nuxeo.common.collections.DependencyTree.EventHandler<T> eventHandler) void
unregister
(DependencyTree.Entry<K, T> entry) void
unresolve
(DependencyTree.Entry<K, T> entry) protected void
updateDependencies
(DependencyTree.Entry<K, T> entry, Collection<K> requires) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DependencyTree
public DependencyTree()
-
-
Method Details
-
iterator
-
add
-
add
-
add
-
remove
-
unregister
-
getEntry
-
get
-
resolve
-
unresolve
-
isRegistered
-
isResolved
-
setEventHandler
public void setEventHandler(org.nuxeo.common.collections.DependencyTree.EventHandler<T> eventHandler) -
getEntries
-
getPendingEntries
-
getPendingObjects
-
getMissingRequirements
-
getResolvedEntries
Entries are sorted so an entry never depends on entries on its right. -
getResolvedObjects
-
clear
public void clear() -
updateDependencies
-