Package org.alfresco.repo.module
Class ModuleComponentHelper
java.lang.Object
org.alfresco.repo.module.ModuleComponentHelper
Helper class to split up some of the code for managing module components. This class handles
the execution of the module components.
- Author:
- Derek Hulley
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModuleVersionNumbergetModuleVersionNumber(Serializable moduleVersion) voidregisterComponent(ModuleComponent component) Add a managed module component to the registry of components.voidsetApplyToTenants(boolean applyToTenants) voidsetDescriptorService(DescriptorService descriptorService) voidsetModuleService(ModuleService moduleService) voidsetRegistryService(RegistryService registryService) voidsetServiceRegistry(ServiceRegistry serviceRegistry) voidsetTenantAdminService(TenantAdminService tenantAdminService) voidvoid
-
Field Details
-
URI_MODULES_1_0
- See Also:
-
-
Constructor Details
-
ModuleComponentHelper
public ModuleComponentHelper()Default constructor
-
-
Method Details
-
setServiceRegistry
- Parameters:
serviceRegistry- provides access to the service APIs
-
setDescriptorService
- Parameters:
descriptorService- gives access to the current repository version
-
setRegistryService
- Parameters:
registryService- the service used to persist component execution details.
-
setModuleService
- Parameters:
moduleService- the service from which to get the available modules.
-
setTenantAdminService
-
setApplyToTenants
public void setApplyToTenants(boolean applyToTenants) - Throws:
UnsupportedOperationException- This feature was never active and cannot be used (ALF-19207)
-
registerComponent
Add a managed module component to the registry of components. These will be controlled by thestartModules()method.- Parameters:
component- a module component to be executed
-
startModules
public void startModules() -
shutdownModules
public void shutdownModules() -
getModuleVersionNumber
-