public class ComponentRegistry extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ComponentRegistry.MappedSet |
Modifier and Type | Field and Description |
---|---|
protected Map<ComponentName,ComponentName> |
aliases
Map of aliased name to canonical name.
|
protected Map<ComponentName,RegistrationInfo> |
components
All registered components including unresolved ones.
|
protected Map<String,ComponentName> |
deployedFiles
Map deployment source ids to component names This was previously managed by DefaultRuntimeContext - but is no
more usable in the original form.
|
protected ComponentRegistry.MappedSet |
pendings
Map pending components to the set of unresolved components they are waiting for.
|
protected ComponentRegistry.MappedSet |
requirements
Maps a component name to a set of component names that are depending on that component.
|
protected LinkedHashMap<ComponentName,RegistrationInfo> |
resolved
The list of resolved components.
|
Constructor and Description |
---|
ComponentRegistry() |
ComponentRegistry(ComponentRegistry reg) |
protected Map<ComponentName,RegistrationInfo> components
protected LinkedHashMap<ComponentName,RegistrationInfo> resolved
protected Map<ComponentName,ComponentName> aliases
protected ComponentRegistry.MappedSet requirements
protected ComponentRegistry.MappedSet pendings
protected Map<String,ComponentName> deployedFiles
public ComponentRegistry()
public ComponentRegistry(ComponentRegistry reg)
public void destroy()
public final boolean isResolved(ComponentName name)
public boolean addComponent(RegistrationInfo ri)
public RegistrationInfo removeComponent(ComponentName name)
public Collection<RegistrationInfo> getResolvedRegistrationInfo()
LinkedHashMap
public Collection<ComponentName> getResolvedNames()
LinkedHashMap
public Set<ComponentName> getMissingDependencies(ComponentName name)
public RegistrationInfo getComponent(ComponentName name)
public boolean contains(ComponentName name)
public int size()
public Collection<RegistrationInfo> getComponents()
public RegistrationInfo[] getComponentsArray()
public Map<ComponentName,Set<ComponentName>> getPendingComponents()
protected ComponentName unaliased(ComponentName name)
protected final boolean computePendings(RegistrationInfo ri)
protected void resolveComponent(RegistrationInfo ri)
protected void unresolveComponent(RegistrationInfo ri)
Copyright © 2017 Nuxeo. All rights reserved.