|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.model.impl.ComponentManagerImpl
public class ComponentManagerImpl
| Field Summary | |
|---|---|
protected Map<ComponentName,Set<Extension>> |
pendingExtensions
|
| Constructor Summary | |
|---|---|
ComponentManagerImpl(RuntimeService runtime)
|
|
| Method Summary | ||
|---|---|---|
void |
_register(RegistrationInfoImpl ri)
|
|
void |
_unregister(RegistrationInfoImpl ri)
|
|
void |
addComponentListener(ComponentListener listener)
Adds a component listener. |
|
protected void |
addDependency(ComponentName name,
RegistrationInfoImpl dependent)
|
|
protected boolean |
computeBlockingDependencies(RegistrationInfoImpl ri)
|
|
ComponentInstance |
getComponent(ComponentName name)
Gets object instance managed by the named component. |
|
Collection<ComponentName> |
getNeededRegistrations()
|
|
Collection<Extension> |
getPendingExtensions(ComponentName name)
|
|
Collection<ComponentName> |
getPendingRegistrations()
Gets the list of pending registrations. |
|
RegistrationInfo |
getRegistrationInfo(ComponentName name)
Gets the component if there is one having the given name. |
|
Collection<RegistrationInfo> |
getRegistrations()
Gets the registrated components. |
|
|
getService(Class<T> serviceClass)
Gets the service of type serviceClass if such a service was declared by a resolved runtime component. |
|
String[] |
getServices()
|
|
boolean |
isRegistered(ComponentName name)
Checks whether or not a component with the given name was registered. |
|
void |
loadContributions(RegistrationInfoImpl ri,
Extension xt)
|
|
void |
register(RegistrationInfo regInfo)
Handles the registration of the given registration info. |
|
void |
registerExtension(Extension extension)
|
|
void |
registerServices(RegistrationInfoImpl ri)
|
|
void |
removeComponentListener(ComponentListener listener)
Removes a component listener. |
|
protected Set<RegistrationInfoImpl> |
removeDependencies(ComponentName name)
|
|
void |
shutdown()
Shuts down the component registry. |
|
int |
size()
Gets the number of registered objects in this registry. |
|
void |
unregister(ComponentName name)
Unregisters a component given its name. |
|
void |
unregister(RegistrationInfo regInfo)
Handles the unregistration of the given registration info. |
|
void |
unregisterExtension(Extension extension)
|
|
void |
unregisterServices(RegistrationInfoImpl ri)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<ComponentName,Set<Extension>> pendingExtensions
| Constructor Detail |
|---|
public ComponentManagerImpl(RuntimeService runtime)
| Method Detail |
|---|
public Collection<RegistrationInfo> getRegistrations()
ComponentManager
getRegistrations in interface ComponentManagerpublic Collection<ComponentName> getPendingRegistrations()
ComponentManager
getPendingRegistrations in interface ComponentManagerpublic Collection<ComponentName> getNeededRegistrations()
public Collection<Extension> getPendingExtensions(ComponentName name)
public RegistrationInfo getRegistrationInfo(ComponentName name)
ComponentManager
getRegistrationInfo in interface ComponentManagername - the component name
public boolean isRegistered(ComponentName name)
ComponentManager
isRegistered in interface ComponentManagername - the object name
public int size()
ComponentManager
size in interface ComponentManagerpublic ComponentInstance getComponent(ComponentName name)
ComponentManager
getComponent in interface ComponentManagername - the object name
public void shutdown()
ComponentManagerThis unregisters all objects registered in this registry.
shutdown in interface ComponentManagerpublic void register(RegistrationInfo regInfo)
ComponentManagerThis is called by the main registry when all dependencies of this registration info were solved and the object can be registered.
If true is returned, the object will be added to the main registry under the name given in RegistrationInfo.
register in interface ComponentManagerregInfo - the registration infopublic final void _register(RegistrationInfoImpl ri)
public void unregister(RegistrationInfo regInfo)
ComponentManagerThis is called by the main registry when the object is u nregistered.
If true is returned, the object will be removed fom the main registry.
unregister in interface ComponentManagerregInfo - the registration infopublic final void _unregister(RegistrationInfoImpl ri)
public void unregister(ComponentName name)
ComponentManager
unregister in interface ComponentManagername - the component namepublic void addComponentListener(ComponentListener listener)
ComponentManagerDoes nothing if the given listener is already registered.
addComponentListener in interface ComponentManagerlistener - the component listener to addpublic void removeComponentListener(ComponentListener listener)
ComponentManagerDoes nothing if the given listener is not registered.
removeComponentListener in interface ComponentManagerlistener - the component listener to removeprotected boolean computeBlockingDependencies(RegistrationInfoImpl ri)
protected void addDependency(ComponentName name,
RegistrationInfoImpl dependent)
protected Set<RegistrationInfoImpl> removeDependencies(ComponentName name)
public void registerExtension(Extension extension)
throws Exception
Exception
public void unregisterExtension(Extension extension)
throws Exception
Exception
public void loadContributions(RegistrationInfoImpl ri,
Extension xt)
public void registerServices(RegistrationInfoImpl ri)
public void unregisterServices(RegistrationInfoImpl ri)
public String[] getServices()
public <T> T getService(Class<T> serviceClass)
ComponentManagerIf the component is not yet activated it will be prior to return the service
getService in interface ComponentManagerT - the service typeserviceClass - the service class
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||