public class ComponentRegistry extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<ComponentName,ComponentName> |
aliases
Map of aliased name to canonical name.
|
protected Map<ComponentName,RegistrationInfoImpl> |
components
All registered components including unresolved ones.
|
protected org.nuxeo.runtime.model.impl.ComponentRegistry.MappedSet |
pendings
Map pending components to the set of unresolved components they are waiting for.
|
protected org.nuxeo.runtime.model.impl.ComponentRegistry.MappedSet |
requirements
Maps a component name to a set of component names that are depending on that component.
|
Constructor and Description |
---|
ComponentRegistry() |
Modifier and Type | Method and Description |
---|---|
boolean |
addComponent(RegistrationInfoImpl ri) |
protected boolean |
computePendings(RegistrationInfo ri)
Fill the pending map with all unresolved dependencies of the given component.
|
boolean |
contains(ComponentName name) |
void |
destroy() |
RegistrationInfoImpl |
getComponent(ComponentName name) |
Collection<RegistrationInfoImpl> |
getComponents() |
RegistrationInfoImpl[] |
getComponentsArray() |
Set<ComponentName> |
getMissingDependencies(ComponentName name) |
Map<ComponentName,Set<ComponentName>> |
getPendingComponents() |
boolean |
isResolved(ComponentName name) |
RegistrationInfoImpl |
removeComponent(ComponentName name) |
protected void |
resolveComponent(RegistrationInfoImpl ri) |
int |
size() |
protected ComponentName |
unaliased(ComponentName name) |
protected void |
unresolveComponent(RegistrationInfoImpl ri) |
protected Map<ComponentName,RegistrationInfoImpl> components
protected Map<ComponentName,ComponentName> aliases
protected org.nuxeo.runtime.model.impl.ComponentRegistry.MappedSet requirements
protected org.nuxeo.runtime.model.impl.ComponentRegistry.MappedSet pendings
public ComponentRegistry()
public void destroy()
protected ComponentName unaliased(ComponentName name)
public final boolean isResolved(ComponentName name)
protected final boolean computePendings(RegistrationInfo ri)
ri
- public boolean addComponent(RegistrationInfoImpl ri)
ri
- public RegistrationInfoImpl removeComponent(ComponentName name)
public Set<ComponentName> getMissingDependencies(ComponentName name)
public RegistrationInfoImpl getComponent(ComponentName name)
public boolean contains(ComponentName name)
public int size()
public Collection<RegistrationInfoImpl> getComponents()
public RegistrationInfoImpl[] getComponentsArray()
public Map<ComponentName,Set<ComponentName>> getPendingComponents()
protected void resolveComponent(RegistrationInfoImpl ri)
protected void unresolveComponent(RegistrationInfoImpl ri)
Copyright © 2016 Nuxeo SA. All rights reserved.