public class ModuleServiceImpl extends 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 |
|---|---|
List<ModuleDetails> |
getAllModules()
Gets a list of all the modules currently installed.
|
List<ModuleDetails> |
getMissingModules()
Gets a list of the modules missing from the system.
|
ModuleDetails |
getModule(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 |
setApplyToTenants(boolean applyToTenants) |
void |
setDescriptorService(DescriptorService descriptorService) |
void |
setRegistryService(RegistryService registryService) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
void |
setTenantAdminService(TenantAdminService tenantAdminService) |
void |
shutdownModules() |
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 setApplyToTenants(boolean applyToTenants)
UnsupportedOperationException - This feature was never active and cannot be used (ALF-19207)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 void shutdownModules()
shutdownModules in interface ModuleServiceModuleComponentHelper.shutdownModules()public ModuleDetails getModule(String moduleId)
getModule in interface ModuleServicemoduleId - a module idpublic List<ModuleDetails> getAllModules()
getAllModules in interface ModuleServicepublic List<ModuleDetails> getMissingModules()
getMissingModules in interface ModuleServiceCopyright © 2005–2018 Alfresco Software. All rights reserved.