Package org.alfresco.repo.module
Class ModuleComponentHelper
- java.lang.Object
-
- org.alfresco.repo.module.ModuleComponentHelper
-
public class ModuleComponentHelper extends java.lang.ObjectHelper 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 Modifier and Type Field Description static java.lang.StringURI_MODULES_1_0
-
Constructor Summary
Constructors Constructor Description ModuleComponentHelper()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModuleVersionNumbergetModuleVersionNumber(java.io.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)voidshutdownModules()voidstartModules()
-
-
-
Field Detail
-
URI_MODULES_1_0
public static final java.lang.String URI_MODULES_1_0
- See Also:
- Constant Field Values
-
-
Method Detail
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
- Parameters:
serviceRegistry- provides access to the service APIs
-
setDescriptorService
public void setDescriptorService(DescriptorService descriptorService)
- Parameters:
descriptorService- gives access to the current repository version
-
setRegistryService
public void setRegistryService(RegistryService registryService)
- Parameters:
registryService- the service used to persist component execution details.
-
setModuleService
public void setModuleService(ModuleService moduleService)
- Parameters:
moduleService- the service from which to get the available modules.
-
setTenantAdminService
public void setTenantAdminService(TenantAdminService tenantAdminService)
-
setApplyToTenants
public void setApplyToTenants(boolean applyToTenants)
- Throws:
java.lang.UnsupportedOperationException- This feature was never active and cannot be used (ALF-19207)
-
registerComponent
public void registerComponent(ModuleComponent component)
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
protected ModuleVersionNumber getModuleVersionNumber(java.io.Serializable moduleVersion)
-
-