|
Nuxeo Enterprise Platform 5.4 | |||||||||
| 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
| Constructor Summary | |
|---|---|
ComponentManagerImpl(RuntimeService runtime)
|
|
| Method Summary | ||
|---|---|---|
void |
addComponentListener(ComponentListener listener)
Adds a component listener. |
|
Collection<ComponentName> |
getActivatingRegistrations()
Gets the pending extensions by component. |
|
Set<String> |
getBlacklist()
|
|
ComponentInstance |
getComponent(ComponentName name)
Gets object instance managed by the named component. |
|
ComponentInstance |
getComponentProvidingService(Class<?> serviceClass)
Gets the component that provides the given service. |
|
Collection<ComponentName> |
getNeededRegistrations()
|
|
Collection<Extension> |
getPendingExtensions(ComponentName name)
|
|
Map<ComponentName,Set<ComponentName>> |
getPendingRegistrations()
Gets the pending registrations and their dependencies. |
|
RegistrationInfo |
getRegistrationInfo(ComponentName name)
Gets the component if there is one having the given name. |
|
Collection<RegistrationInfo> |
getRegistrations()
Gets the registered components. |
|
|
getService(Class<T> serviceClass)
Gets the service of type serviceClass if such a service was declared by a resolved runtime component. |
|
String[] |
getServices()
Get the list of all registered service names An empty array is returned if no registered services are found. |
|
boolean |
isRegistered(ComponentName name)
Checks whether or not a component with the given name was registered. |
|
static 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. |
|
void |
setBlacklist(Set<String> blacklist)
|
|
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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentManagerImpl(RuntimeService runtime)
| Method Detail |
|---|
public Collection<RegistrationInfo> getRegistrations()
ComponentManager
getRegistrations in interface ComponentManagerpublic Map<ComponentName,Set<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 Set<String> getBlacklist()
getBlacklist in interface ComponentManagerpublic void setBlacklist(Set<String> blacklist)
setBlacklist in interface ComponentManagerpublic void unregister(RegistrationInfo regInfo)
ComponentManagerThis is called by the main registry when the object is unregistered.
If true is returned, the object will be removed from the main registry.
unregister in interface ComponentManagerregInfo - the registration infopublic 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 removepublic ComponentInstance getComponentProvidingService(Class<?> serviceClass)
ComponentManager
getComponentProvidingService in interface ComponentManagerserviceClass - the service class
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
public Collection<ComponentName> getActivatingRegistrations()
ComponentManager
getActivatingRegistrations in interface ComponentManager
public void registerExtension(Extension extension)
throws Exception
Exception
public void unregisterExtension(Extension extension)
throws Exception
Exception
public static void loadContributions(RegistrationInfoImpl ri,
Extension xt)
public void registerServices(RegistrationInfoImpl ri)
public void unregisterServices(RegistrationInfoImpl ri)
public String[] getServices()
ComponentManager
getServices in interface ComponentManager
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||