public class ModuleServiceImpl extends java.lang.Object implements org.springframework.context.ApplicationContextAware, ModuleService
module startup components.
All required startup executions are performed in a single transaction, so this
component guarantees that the module initialization is consistent. Module components are
executed in dependency order only. The version numbering is not to be used
for ordering purposes.
Afterwards, execution details are persisted in the
service registry to be used when the
server starts up again.| Constructor and Description |
|---|
ModuleServiceImpl()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getAllModules()
Gets a list of all the modules currently installed.
|
ModuleDetails |
getModule(java.lang.String moduleId)
Gets the module details for a given module id.
|
void |
registerComponent(ModuleComponent component)
Register a component of a module for execution.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setDescriptorService(DescriptorService descriptorService) |
void |
setRegistryService(RegistryService registryService) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
void |
setTenantAdminService(TenantAdminService tenantAdminService) |
void |
startModules()
Start all the modules.
|
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public void setDescriptorService(DescriptorService descriptorService)
public void setRegistryService(RegistryService registryService)
registryService - the service used to persist component execution details.public void setTenantAdminService(TenantAdminService tenantAdminService)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void registerComponent(ModuleComponent component)
ModuleServiceregisterComponent in interface ModuleServicecomponent - the module component.ModuleComponentHelper.registerComponent(ModuleComponent)public void startModules()
startModules in interface ModuleServiceModuleComponentHelper.startModules()public ModuleDetails getModule(java.lang.String moduleId)
getModule in interface ModuleServicemoduleId - a module idpublic java.util.List getAllModules()
getAllModules in interface ModuleServiceCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.