Class FragmentRegistry
- java.lang.Object
-
- org.nuxeo.common.collections.DependencyTree<String,FragmentDescriptor>
-
- org.nuxeo.runtime.deployment.preprocessor.FragmentRegistry
-
- All Implemented Interfaces:
Iterable<DependencyTree.Entry<String,FragmentDescriptor>>
public class FragmentRegistry extends DependencyTree<String,FragmentDescriptor>
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.common.collections.DependencyTree
DependencyTree.Entry<K,T>
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,FragmentDescriptor>
fragments
-
Constructor Summary
Constructors Constructor Description FragmentRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(FragmentDescriptor fragment)
protected void
commitFragments()
FragmentDescriptor
get(String key)
Collection<DependencyTree.Entry<String,FragmentDescriptor>>
getEntries()
DependencyTree.Entry<String,FragmentDescriptor>
getEntry(String key)
List<DependencyTree.Entry<String,FragmentDescriptor>>
getMissingRequirements()
List<DependencyTree.Entry<String,FragmentDescriptor>>
getPendingEntries()
List<FragmentDescriptor>
getPendingObjects()
List<DependencyTree.Entry<String,FragmentDescriptor>>
getResolvedEntries()
Entries are sorted so an entry never depends on entries on its right.List<FragmentDescriptor>
getResolvedObjects()
-
Methods inherited from class org.nuxeo.common.collections.DependencyTree
add, add, add, clear, isRegistered, isResolved, iterator, remove, resolve, setEventHandler, unregister, unresolve, updateDependencies
-
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 Detail
-
fragments
protected final Map<String,FragmentDescriptor> fragments
-
-
Method Detail
-
add
public void add(FragmentDescriptor fragment)
-
getResolvedEntries
public List<DependencyTree.Entry<String,FragmentDescriptor>> getResolvedEntries()
Description copied from class:DependencyTree
Entries are sorted so an entry never depends on entries on its right.- Overrides:
getResolvedEntries
in classDependencyTree<String,FragmentDescriptor>
-
getMissingRequirements
public List<DependencyTree.Entry<String,FragmentDescriptor>> getMissingRequirements()
- Overrides:
getMissingRequirements
in classDependencyTree<String,FragmentDescriptor>
-
get
public FragmentDescriptor get(String key)
- Overrides:
get
in classDependencyTree<String,FragmentDescriptor>
-
getEntries
public Collection<DependencyTree.Entry<String,FragmentDescriptor>> getEntries()
- Overrides:
getEntries
in classDependencyTree<String,FragmentDescriptor>
-
getResolvedObjects
public List<FragmentDescriptor> getResolvedObjects()
- Overrides:
getResolvedObjects
in classDependencyTree<String,FragmentDescriptor>
-
getPendingObjects
public List<FragmentDescriptor> getPendingObjects()
- Overrides:
getPendingObjects
in classDependencyTree<String,FragmentDescriptor>
-
getEntry
public DependencyTree.Entry<String,FragmentDescriptor> getEntry(String key)
- Overrides:
getEntry
in classDependencyTree<String,FragmentDescriptor>
-
getPendingEntries
public List<DependencyTree.Entry<String,FragmentDescriptor>> getPendingEntries()
- Overrides:
getPendingEntries
in classDependencyTree<String,FragmentDescriptor>
-
commitFragments
protected void commitFragments()
-
-