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.ApplicationContextAware
org.springframework.beans.BeansException
public void registerComponent(ModuleComponent component)
ModuleService
registerComponent
in interface ModuleService
component
- the module component.ModuleComponentHelper.registerComponent(ModuleComponent)
public void startModules()
startModules
in interface ModuleService
ModuleComponentHelper.startModules()
public void shutdownModules()
shutdownModules
in interface ModuleService
ModuleComponentHelper.shutdownModules()
public ModuleDetails getModule(String moduleId)
getModule
in interface ModuleService
moduleId
- a module idpublic List<ModuleDetails> getAllModules()
getAllModules
in interface ModuleService
public List<ModuleDetails> getMissingModules()
getMissingModules
in interface ModuleService
Copyright © 2005–2017 Alfresco Software. All rights reserved.