Package org.nuxeo.runtime.deploy
Class DependencyTree<K,T>
java.lang.Object
org.nuxeo.runtime.deploy.DependencyTree<K,T>
- All Implemented Interfaces:
Iterable<DependencyTree.Entry<K,
T>>
- Direct Known Subclasses:
ContributionManager
- Author:
- Bogdan Stefanescu TODO this was copied from nuxeo.commons and fixed - should put it back with all modifs
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(K key, T object, Collection<K> requires) void
clear()
getResolved
(K key) Entries are sorted so an entry never depends on entries on its right.boolean
boolean
isRegistered
(K key) boolean
isResolved
(K key) iterator()
protected void
registered
(DependencyTree.Entry<K, T> entry) void
void
resolve
(DependencyTree.Entry<K, T> entry) protected void
resolved
(DependencyTree.Entry<K, T> entry) void
unregister
(DependencyTree.Entry<K, T> entry) protected void
unregistered
(DependencyTree.Entry<K, T> entry) void
unresolve
(DependencyTree.Entry<K, T> entry) protected void
unresolved
(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
-
Field Details
-
PHANTOM
public static final int PHANTOM- See Also:
-
REGISTERED
public static final int REGISTERED- See Also:
-
RESOLVED
public static final int RESOLVED- See Also:
-
-
Constructor Details
-
DependencyTree
public DependencyTree()
-
-
Method Details
-
iterator
-
add
-
add
-
add
-
remove
-
unregister
-
getEntry
-
get
-
getResolved
-
resolve
-
unresolve
-
isPhantom
-
isRegistered
-
isResolved
-
getEntries
-
getRegisteredObjects
-
getPendingEntries
-
getPendingObjects
-
getMissingRequirements
-
getResolvedEntries
Entries are sorted so an entry never depends on entries on its right. -
getResolvedObjects
-
clear
public void clear() -
updateDependencies
-
registered
-
unregistered
-
resolved
-
unresolved
-